javax.management
Class RuntimeOperationsException

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

public class RuntimeOperationsException
extends JMRuntimeException (src)

Wraps runtime exceptions thrown when performing operations on MBeans.

See Also:
Serialized Form

Constructor Summary
RuntimeOperationsException(java.lang.RuntimeException e)
          Construct a new RuntimeOperationsException from a given runtime exception.
RuntimeOperationsException(java.lang.RuntimeException e, java.lang.String message)
          Construct a new RuntimeOperationsException 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

RuntimeOperationsException

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

Parameters:
e - the runtime exception to wrap.

RuntimeOperationsException

public RuntimeOperationsException(java.lang.RuntimeException e,
                                  java.lang.String message)
Construct a new RuntimeOperationsException 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