javax.management
Class RuntimeOperationsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javax.management.JMRuntimeException
                          |
                          +--javax.management.RuntimeOperationsException

public class RuntimeOperationsException
extends JMRuntimeException

This class represents runtime exceptions thrown in the agent when performing operations on MBeans. It wraps the actual java.lang.RuntimeException thrown.

See Also:
Serialized Form

Constructor Summary
RuntimeOperationsException(java.lang.RuntimeException rtex)
          Creates a RuntimeOperationsException that wraps the actual java.lang.RuntimeException.
RuntimeOperationsException(java.lang.RuntimeException rtex, java.lang.String message)
          Creates a RuntimeOperationsException that wraps the actual java.lang.RuntimeException with a detailed message.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the actual RuntimeException thrown.
 java.lang.RuntimeException getTargetException()
          Returns the actual RuntimeException thrown.
 void printStackTrace()
          Overrides the printStackTrace method of Throwable
 java.lang.String toString()
          Overrides the toString method of Throwable
 
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

RuntimeOperationsException

public RuntimeOperationsException(java.lang.RuntimeException rtex)
Creates a RuntimeOperationsException that wraps the actual java.lang.RuntimeException.
Parameters:
rtex - RuntimeException to be wraped by RuntimeOperationsException

RuntimeOperationsException

public RuntimeOperationsException(java.lang.RuntimeException rtex,
                                  java.lang.String message)
Creates a RuntimeOperationsException that wraps the actual java.lang.RuntimeException with a detailed message.
Parameters:
rtex - RuntimeException to be wraped by RuntimeOperationsException.
message - the detail message.
Method Detail

getTargetException

public java.lang.RuntimeException getTargetException()
Returns the actual RuntimeException thrown.
Returns:
the wrapped RuntimeException.

getCause

public java.lang.Throwable getCause()
Returns the actual RuntimeException thrown.
Returns:
the wrapped RuntimeException.

printStackTrace

public void printStackTrace()
Overrides the printStackTrace method of Throwable
Overrides:
printStackTrace in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides the toString method of Throwable
Overrides:
toString in class java.lang.Throwable