org.jbind.base
Class UnexpectedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.jbind.base.UnexpectedException
All Implemented Interfaces:
java.io.Serializable

public class UnexpectedException
extends java.lang.RuntimeException

Runtime exception that wraps (checked) exceptions that were raised unexpectedly. This class is derived from RuntimeException in order not to clutter the code with unexpected exceptions.

See Also:
Serialized Form

Constructor Summary
UnexpectedException(java.lang.Exception anException)
          Constructs an UnexpectedException.
 
Method Summary
 java.lang.Exception getException()
          Gets the wrapped exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnexpectedException

public UnexpectedException(java.lang.Exception anException)
Constructs an UnexpectedException.

Parameters:
anException - (required). The (checked) exception that was raised unexpectedly.
Method Detail

getException

public java.lang.Exception getException()
Gets the wrapped exception.

Returns:
(required).