public class MBeanException extends JMException
MBeanException. Calling
getTargetException() will return the wrapped
exception.| Constructor and Description |
|---|
MBeanException(Exception e)
Constructs a new
MBeanException wrapping
the specified exception. |
MBeanException(Exception e,
String message)
Constructs a new
MBeanException 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
exception.
|
Exception |
getTargetException()
Returns the true cause of this exception, the wrapped
exception.
|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MBeanException(Exception e)
MBeanException wrapping
the specified exception.e - the exception to be wrapped.public MBeanException(Exception e, String message)
MBeanException 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 Exception getTargetException()