ariba.util.core
Class WrapperRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ariba.util.core.WrapperRuntimeException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AWGenericException, FieldValueException
public class WrapperRuntimeException
- extends 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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
WrapperRuntimeException
public WrapperRuntimeException(Throwable e)
WrapperRuntimeException
public WrapperRuntimeException(String message)
WrapperRuntimeException
public WrapperRuntimeException(String message,
Throwable e)
wrapsException
public boolean wrapsException(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 Exception getExceptionType(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 Throwable originalCause()
originalException
public 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-2009 Ariba, Inc. All Rights Reserved.