ix.util
Class RethrownException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--ix.util.RethrownException
All Implemented Interfaces:
java.io.Serializable

public class RethrownException
extends java.lang.RuntimeException

An unchecked exception used to wrap other Throwables when they're rethrown. Usually the wrapped Throwable is a checked exception that should not or could not be handled locally.

See Also:
Serialized Form

Field Summary
(package private)  java.lang.Throwable target
           
 
Constructor Summary
RethrownException(java.lang.Throwable target)
          Constructs an exception with a description of the target as its message.
RethrownException(java.lang.Throwable target, java.lang.String message)
          Constructs an exception with the specified target and message.
 
Method Summary
 java.lang.Throwable getTargetException()
          Returns the Throwable that was wrapped in this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

java.lang.Throwable target
Constructor Detail

RethrownException

public RethrownException(java.lang.Throwable target)
Constructs an exception with a description of the target as its message.
See Also:
Debug.describeException(Throwable)

RethrownException

public RethrownException(java.lang.Throwable target,
                         java.lang.String message)
Constructs an exception with the specified target and message. The message should be a description of the problem that does not require a separate look at the target exception.
Method Detail

getTargetException

public java.lang.Throwable getTargetException()
Returns the Throwable that was wrapped in this exception.