javax.management
Class RuntimeMBeanException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.management.JMRuntimeException
                  extended by javax.management.RuntimeMBeanException
All Implemented Interfaces:
Serializable

public class RuntimeMBeanException
extends JMRuntimeException

Wraps runtime exceptions thrown by MBeans.

Version:
$Revision: 1.9.6.1 $

Revisions:

20020313 Juha Lindfors:

20020711 Adrian Brock:

Author:
Juha Lindfors, Adrian Brock
See Also:
Serialized Form

Constructor Summary
RuntimeMBeanException(RuntimeException e)
          Construct a new RuntimeMBeanException from a given runtime exception.
RuntimeMBeanException(RuntimeException e, String message)
          Construct a new RuntimeMBeanException from a given runtime exception and message.
 
Method Summary
 Throwable getCause()
          Retrieves the wrapped runtime exception.
 RuntimeException getTargetException()
          Retrieves the wrapped runtime exception.
 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(RuntimeException e)
Construct a new RuntimeMBeanException from a given runtime exception.

Parameters:
e - the runtime exception to wrap.

RuntimeMBeanException

public RuntimeMBeanException(RuntimeException e,
                             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 RuntimeException getTargetException()
Retrieves the wrapped runtime exception.

Returns:
the wrapped runtime exception.

getCause

public Throwable getCause()
Retrieves the wrapped runtime exception.

Overrides:
getCause in class Throwable
Returns:
the wrapped runtime exception.

toString

public 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.

Overrides:
toString in class Throwable
Returns:
string representation of this exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.