javax.management
Class RuntimeOperationsException

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.RuntimeOperationsException
All Implemented Interfaces:
Serializable

public class RuntimeOperationsException
extends JMRuntimeException

Represents a runtime exception thrown by a management bean operation. When a management bean executes code that causes a runtime exception to be thrown, the resulting exception is wrapped inside an RuntimeOperationsException. Calling getTargetException() will return the wrapped exception.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
RuntimeOperationsException(RuntimeException e)
          Constructs a new RuntimeOperationsException wrapping the specified exception.
RuntimeOperationsException(RuntimeException e, String message)
          Constructs a new RuntimeOperationsException wrapping the specified exception and using the supplied message.
 
Method Summary
 Throwable getCause()
          Returns the true cause of this exception, the wrapped exception.
 RuntimeException getTargetException()
          Returns the true cause of this exception, the wrapped exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuntimeOperationsException

public RuntimeOperationsException(RuntimeException e)
Constructs a new RuntimeOperationsException wrapping the specified exception.

Parameters:
e - the exception to be wrapped.

RuntimeOperationsException

public RuntimeOperationsException(RuntimeException e,
                                  String message)
Constructs a new RuntimeOperationsException wrapping the specified exception and using the supplied message.

Parameters:
e - the exception to be wrapped.
message - the error message to give to the user.
Method Detail

getCause

public Throwable getCause()
Returns the true cause of this exception, the wrapped exception.

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

getTargetException

public RuntimeException getTargetException()
Returns the true cause of this exception, the wrapped exception.

Returns:
the wrapped exception.