Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.management
Class MBeanException  view MBeanException download MBeanException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.management.JMException
              extended byjavax.management.MBeanException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MBeanRegistrationException

public class MBeanException
extends JMException

A wrapper for exceptions thrown by MBeans.

Version:
$Revision: 1.4.2.1 $

Revisions:

20020313 Juha Lindfors:

  • Overriding toString() to print out the root exception

20020710 Adrian Brock:

  • Serialization

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.Exception exception
          The wrapped exception.
private static long serialVersionUID
           
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
MBeanException(java.lang.Exception exception)
          Construct a new MBeanException from a given exception.
MBeanException(java.lang.Exception exception, java.lang.String message)
          Construct a new MBeanException from a given exception and message.
 
Method Summary
 java.lang.Exception getTargetException()
          Retrieves the wrapped exception.
 void printStackTrace(java.io.PrintStream stream)
          Prints the composite message and the embedded stack trace to the specified print stream.
 java.lang.String toString()
          Returns a string representation of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

private java.lang.Exception exception
The wrapped exception.


serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

MBeanException

public MBeanException(java.lang.Exception exception)
Construct a new MBeanException from a given exception.


MBeanException

public MBeanException(java.lang.Exception exception,
                      java.lang.String message)
Construct a new MBeanException from a given exception and message.

Method Detail

getTargetException

public java.lang.Exception getTargetException()
Retrieves the wrapped exception.


printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Prints the composite message and the embedded stack trace to the specified print stream.


toString

public java.lang.String toString()
Returns a string representation of this exception. The returned string contains this exception name, message and a string representation of the target exception if it has been set.