ariba.util.core
Class WrapperRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ariba.util.core.WrapperRuntimeException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AWGenericException, FieldValueException
public class WrapperRuntimeException
- extends java.lang.RuntimeException
The WrapperRuntimeException class provides a simple runtime exception
for all the various problems which might occur within the FieldValue
dispatch mechanism. In many cases, this simply wraps a caught-exception,
however, in a few cases, this is the original exception. In either case,
this class overrides the pertinent api's from Exception so that appropriate
information can be extracted.
- See Also:
- Serialized Form
Method Summary |
java.lang.Exception |
getExceptionType(java.lang.Class exceptionClass)
Provide a function to get a particular type of exception in the cause stack. |
java.lang.Throwable |
originalCause()
|
java.lang.Exception |
originalException()
Provides access to the original exception, if one exists. |
boolean |
wrapsException(java.lang.Class exceptionClass)
Provide a function to determine if this is wrapping a particular kind of exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WrapperRuntimeException
public WrapperRuntimeException(java.lang.Throwable e)
WrapperRuntimeException
public WrapperRuntimeException(java.lang.String message)
WrapperRuntimeException
public WrapperRuntimeException(java.lang.String message,
java.lang.Throwable e)
wrapsException
public boolean wrapsException(java.lang.Class exceptionClass)
- Provide a function to determine if this is wrapping a particular kind of exception.
- Parameters:
exceptionClass
- The exception class we are checking for instance of in exception stack.
- Returns:
- true If we wrap the passed in exception type.
getExceptionType
public java.lang.Exception getExceptionType(java.lang.Class exceptionClass)
- Provide a function to get a particular type of exception in the cause stack.
- Parameters:
exceptionClass
- The exception class we are checking for instance of in exception stack.
- Returns:
- true If we wrap the passed in exception type.
originalCause
public java.lang.Throwable originalCause()
originalException
public java.lang.Exception originalException()
- Provides access to the original exception, if one exists.
- Returns:
- the original exception which this WrapperRuntimeException is wrapping,
or null if this exception was created with the "message" constructor.
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.