|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.management.JMRuntimeException
javax.management.RuntimeMBeanException
public class RuntimeMBeanException
Represents an arbitrary runtime exception thrown by a management
bean. When a management bean executes code that causes a runtime
exception to be thrown, the resulting exception is wrapped inside a
RuntimeMBeanException
. Calling getTargetException()
will return the wrapped exception.
Constructor Summary | |
---|---|
RuntimeMBeanException(RuntimeException e)
Constructs a new RuntimeMBeanException wrapping
the specified exception. |
|
RuntimeMBeanException(RuntimeException e,
String message)
Constructs a new RuntimeMBeanException wrapping
the specified exception and using the supplied message. |
Method Summary | |
---|---|
Throwable |
getCause()
Returns the true cause of this exception, the wrapped runtime exception. |
RuntimeException |
getTargetException()
Returns the true cause of this exception, the wrapped runtime 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 RuntimeMBeanException(RuntimeException e)
RuntimeMBeanException
wrapping
the specified exception.
e
- the exception to be wrapped.public RuntimeMBeanException(RuntimeException e, 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.Method Detail |
---|
public Throwable getCause()
getCause
in class Throwable
public RuntimeException getTargetException()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |