unit
Class UnexpectedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--unit.UniTRuntimeException
                          |
                          +--unit.NestedException
                                |
                                +--unit.UnexpectedException

public final class UnexpectedException
extends NestedException

All exceptions, that are not explicitly thrown, e.g. NullPointerExceptions, that are thrown by the java virtual machine, should be catched, located, and explicitly thrown nested in objects of this class. We encapsulate the real exception into this Exception and throw this new Exception which need not to be declared, due to its inheritance from RuntimeException.

See Also:
Serialized Form

Methods inherited from class unit.NestedException
getHiddenException
 
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