com.mockrunner.base
Class NestedApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
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 |
NestedApplicationException
public NestedApplicationException(java.lang.String message,
java.lang.Throwable nested)
NestedApplicationException
public NestedApplicationException(java.lang.Throwable nested)
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