com.mockrunner.base
Class NestedApplicationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.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.Throwable getNested()
          Returns the nested exception (which may also be a NestedApplicationException)
 java.lang.Throwable getRootCause()
          Returns the root cause, i.e.
 
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

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