org.jboss.util
Class UnexpectedThrowable
java.lang.Object
java.lang.Throwable
java.lang.Error
org.jboss.util.NestedError (src)
org.jboss.util.UnexpectedThrowable
- All Implemented Interfaces:
- NestedThrowable (src) , java.io.Serializable
- public class UnexpectedThrowable
- extends NestedError (src)
Thrown to indicate that a Throwable was caught but was not expected.
This is typical when catching Throwables to handle and rethrow Exceptions
and Errors.
- See Also:
- Serialized Form
Constructor Summary |
UnexpectedThrowable()
Construct a UnexpectedThrowable with no detail. |
UnexpectedThrowable(java.lang.String msg)
Construct a UnexpectedThrowable with the specified
detail message. |
UnexpectedThrowable(java.lang.String msg,
java.lang.Throwable nested)
Construct a UnexpectedThrowable with the specified
detail message and nested Throwable. |
UnexpectedThrowable(java.lang.Throwable nested)
Construct a UnexpectedThrowable with the specified
nested Throwable. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnexpectedThrowable
public UnexpectedThrowable(java.lang.String msg)
- Construct a UnexpectedThrowable with the specified
detail message.
- Parameters:
msg
- Detail message.
UnexpectedThrowable
public UnexpectedThrowable(java.lang.String msg,
java.lang.Throwable nested)
- Construct a UnexpectedThrowable with the specified
detail message and nested Throwable.
- Parameters:
msg
- Detail message.nested
- Nested Throwable.
UnexpectedThrowable
public UnexpectedThrowable(java.lang.Throwable nested)
- Construct a UnexpectedThrowable with the specified
nested Throwable.
- Parameters:
nested
- Nested Throwable.
UnexpectedThrowable
public UnexpectedThrowable()
- Construct a UnexpectedThrowable with no detail.