public class RuntimeMBeanException extends JMRuntimeException
RuntimeMBeanException. Calling getTargetException() will return the wrapped exception.| Constructor and Description |
|---|
RuntimeMBeanException(java.lang.RuntimeException e)
Constructs a new
RuntimeMBeanException wrapping
the specified exception. |
RuntimeMBeanException(java.lang.RuntimeException e,
java.lang.String message)
Constructs a new
RuntimeMBeanException wrapping
the specified exception and using the supplied message. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Returns the true cause of this exception, the wrapped runtime
exception.
|
java.lang.RuntimeException |
getTargetException()
Returns the true cause of this exception, the wrapped runtime
exception.
|
public RuntimeMBeanException(java.lang.RuntimeException e)
RuntimeMBeanException wrapping
the specified exception.e - the exception to be wrapped.public RuntimeMBeanException(java.lang.RuntimeException e, java.lang.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 java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic java.lang.RuntimeException getTargetException()