com.mockrunner.base
Class NestedApplicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.mockrunner.base.NestedApplicationException
All Implemented Interfaces:
java.io.Serializable

public class NestedApplicationException
extends java.lang.RuntimeException

If Mockrunner catches an exception inside application code, it rethrows it as an instance of this class.

See Also:
Serialized Form

Constructor Summary
NestedApplicationException(java.lang.String message, java.lang.Throwable nested)
           
NestedApplicationException(java.lang.Throwable nested)
           
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.Throwable getNested()
          Returns the nested exception (which may also be a NestedApplicationException)
 java.lang.Throwable getRootCause()
          Returns the root cause, i.e. the first exception that is not an instance of NestedApplicationException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

NestedApplicationException

public NestedApplicationException(java.lang.String message,
                                  java.lang.Throwable nested)

NestedApplicationException

public NestedApplicationException(java.lang.Throwable nested)
Method Detail

getNested

public java.lang.Throwable getNested()
Returns the nested exception (which may also be a NestedApplicationException)

Returns:
the nested exception

getRootCause

public java.lang.Throwable getRootCause()
Returns the root cause, i.e. the first exception that is not an instance of NestedApplicationException.

Returns:
the root exception

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable