public class RuntimeErrorException extends JMRuntimeException
RuntimeErrorException. Calling
getTargetError() will return the wrapped
exception.| Constructor and Description |
|---|
RuntimeErrorException(Error e)
Constructs a new
RuntimeErrorException wrapping
the specified error. |
RuntimeErrorException(Error e,
String message)
Constructs a new
RuntimeErrorException wrapping
the specified error and using the supplied message. |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the true cause of this error, the wrapped
error.
|
Error |
getTargetError()
Returns the true cause of this error, the wrapped
error.
|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RuntimeErrorException(Error e)
RuntimeErrorException wrapping
the specified error.e - the error to be wrapped.public RuntimeErrorException(Error e, String message)
RuntimeErrorException wrapping
the specified error and using the supplied message.e - the error to be wrapped.message - the error message to give to the user.public Error getTargetError()