public class MBeanException extends JMException
MBeanException. Calling
getTargetException() will return the wrapped
exception.| Constructor and Description |
|---|
MBeanException(java.lang.Exception e)
Constructs a new
MBeanException wrapping
the specified exception. |
MBeanException(java.lang.Exception e,
java.lang.String message)
Constructs a new
MBeanException 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
exception.
|
java.lang.Exception |
getTargetException()
Returns the true cause of this exception, the wrapped
exception.
|
public MBeanException(java.lang.Exception e)
MBeanException wrapping
the specified exception.e - the exception to be wrapped.public MBeanException(java.lang.Exception e, java.lang.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 java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic java.lang.Exception getTargetException()