Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.management.JMException javax.management.MBeanException
public class MBeanException extends JMException
Represents "user defined" exceptions thrown by MBean methods in the agent. It "wraps" the actual "user defined" exception thrown. This exception will be built by the MBeanServer when a call to an MBean method results in an unknown exception.
Constructor and Description |
---|
MBeanException(Exception e)
Creates an MBeanException that wraps the actual java.lang.Exception . |
MBeanException(Exception e,
String message)
Creates an MBeanException that wraps the actual java.lang.Exception with
a detail message. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Return the actual Exception thrown. |
Exception |
getTargetException()
Return the actual Exception thrown. |
Methods inherited from class java.lang.Throwable |
---|
addSuppressedException, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressedExceptions, 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
that wraps the actual java.lang.Exception
.
e
- the wrapped exception.public MBeanException(Exception e, String message)
MBeanException
that wraps the actual java.lang.Exception
with
a detail message.
e
- the wrapped exception.message
- the detail message.Method Detail |
---|
public Exception getTargetException()
Exception
thrown.
public Throwable getCause()
Exception
thrown.
getCause
in class Throwable
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.