|
|||||||||||
| 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
A wrapper for exceptions thrown by MBeans.
Revisions:
20020313 Juha Lindfors:
20020710 Adrian Brock:
| Constructor Summary | |
MBeanException(Exception exception)
Construct a new MBeanException from a given exception. |
|
MBeanException(Exception exception,
String message)
Construct a new MBeanException from a given exception and message. |
|
| Method Summary | |
Throwable |
getCause()
Retrieves the wrapped exception. |
Exception |
getTargetException()
Retrieves the wrapped exception. |
void |
printStackTrace(PrintStream stream)
Prints the composite message and the embedded stack trace to the specified print stream. |
String |
toString()
Returns a string representation of this exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MBeanException(Exception exception)
exception - the exception to wrap.
public MBeanException(Exception exception,
String message)
message - the specified message.| Method Detail |
public Exception getTargetException()
public Throwable getCause()
public void printStackTrace(PrintStream stream)
stream - Stream to print to.public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||