org.jboss.util
Class UnexpectedThrowable

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.jboss.util.NestedError (src) 
              extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.jboss.util.NestedThrowable (src)
NestedThrowable.Util (src)
 
Field Summary
 
Fields inherited from class org.jboss.util.NestedError (src)
nested
 
Fields inherited from interface org.jboss.util.NestedThrowable (src)
DETECT_DUPLICATE_NESTING, NESTED_TRACE_ENABLED, PARENT_TRACE_ENABLED
 
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 org.jboss.util.NestedError (src)
getCause, getMessage, getNested, printStackTrace, printStackTrace, printStackTrace
 
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
 

Constructor Detail

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.