unit
Class NestedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--unit.UniTRuntimeException
                          |
                          +--unit.NestedException
Direct Known Subclasses:
UnexpectedException, UserException

public abstract class NestedException
extends UniTRuntimeException

Due to its inheritance from UniTRuntimeException, this class needs not to be declared and can be used to encapsulate any exception, that is not derived from UniTRuntimeException. It is an abstract class. Other classes must be derived and given a name that reflects the reason, why the functionality of nested exceptions is needed.

See Also:
Serialized Form

Method Summary
 java.lang.Throwable getHiddenException()
          Returns the original exception, that is encapsulated within this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getHiddenException

public java.lang.Throwable getHiddenException()
Returns the original exception, that is encapsulated within this exception.