|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.management.JMException
javax.management.MBeanException
public class MBeanException
Represents an arbitrary exception thrown by a management
bean. When a management bean executes code that causes
an exception to be thrown, the resulting exception is
wrapped inside an MBeanException
. Calling
getTargetException()
will return the wrapped
exception.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
Throwable |
getCause()
Returns the true cause of this exception, the wrapped exception. |
Exception |
getTargetException()
Returns the true cause of this exception, the wrapped exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public Throwable getCause()
getCause
in class Throwable
public Exception getTargetException()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |