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