XMOJO 5 API Docs

javax.management
Class MBeanException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.management.JMException
                    |
                    +--javax.management.MBeanException
All Implemented Interfaces:
java.io.Serializable
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.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
 

Constructor Detail

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.
Method Detail

getTargetException

public java.lang.Exception getTargetException()
Returns the actual java.lang.Exception thrown

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

XMOJO 5 API Docs

Copyright ©2003 XMOJO.org. All Rights Reserved.