javax.management
Class RuntimeMBeanException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjavax.management.JMRuntimeException (src) 
                  extended byjavax.management.RuntimeMBeanException
All Implemented Interfaces:
java.io.Serializable

public class RuntimeMBeanException
extends JMRuntimeException (src)

Wraps runtime exceptions thrown by MBeans.

See Also:
Serialized Form

Constructor Summary
RuntimeMBeanException(java.lang.RuntimeException e)
          Construct a new RuntimeMBeanException from a given runtime exception.
RuntimeMBeanException(java.lang.RuntimeException e, java.lang.String message)
          Construct a new RuntimeMBeanException from a given runtime exception and message.
 
Method Summary
 java.lang.Throwable getCause()
          Retrieves the wrapped runtime exception.
 java.lang.RuntimeException getTargetException()
          Retrieves the wrapped runtime exception.
 java.lang.String toString()
          Returns a string representation of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuntimeMBeanException

public RuntimeMBeanException(java.lang.RuntimeException e)
Construct a new RuntimeMBeanException from a given runtime exception.

Parameters:
e - the runtime exception to wrap.

RuntimeMBeanException

public RuntimeMBeanException(java.lang.RuntimeException e,
                             java.lang.String message)
Construct a new RuntimeMBeanException from a given runtime exception and message.

Parameters:
e - the runtime exception to wrap.
message - the specified message.
Method Detail

getTargetException

public java.lang.RuntimeException getTargetException()
Retrieves the wrapped runtime exception.

Returns:
the wrapped runtime exception.

getCause

public java.lang.Throwable getCause()
Retrieves the wrapped runtime exception.

Returns:
the wrapped runtime exception.

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.

Returns:
string representation of this exception