javax.management
Class MBeanException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.management.JMException
|
+--javax.management.MBeanException
- Direct Known Subclasses:
- MBeanRegistrationException
- public class MBeanException
- extends JMException
This class 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.
- See Also:
- Serialized Form
|
Constructor Summary |
MBeanException(java.lang.Exception e)
Creates a MBeanException that wraps the actual java.lang.Exception. |
MBeanException(java.lang.Exception e,
java.lang.String message)
Creates a MBeanException that wraps the actual java.lang.Exception
with a detail message. |
|
Method Summary |
java.lang.Throwable |
getCause()
Returns the actual Exception thrown. |
java.lang.Exception |
getTargetException()
Returns the actual java.lang.Exception thrown |
void |
printStackTrace()
Overrides the method |
java.lang.String |
toString()
Overrides the method |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
MBeanException
public MBeanException(java.lang.Exception e)
- Creates a MBeanException that wraps the actual java.lang.Exception.
MBeanException
public MBeanException(java.lang.Exception e,
java.lang.String message)
- Creates a MBeanException that wraps the actual java.lang.Exception
with a detail message.
getTargetException
public java.lang.Exception getTargetException()
- Returns the actual java.lang.Exception thrown
getCause
public java.lang.Throwable getCause()
- Returns the actual
Exception thrown.
- Returns:
- the wrapped
Exception.
printStackTrace
public void printStackTrace()
- Overrides the method
- Overrides:
- printStackTrace in class java.lang.Throwable
toString
public java.lang.String toString()
- Overrides the method
- Overrides:
- toString in class java.lang.Throwable