javax.management
Class RuntimeErrorException

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

public class RuntimeErrorException
extends JMRuntimeException

Represents an arbitrary error thrown by a management bean. When a management bean executes code that causes an error to be thrown, the resulting error is wrapped inside an RuntimeErrorException. Calling getTargetError() will return the wrapped exception.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
RuntimeErrorException(Error e)
          Constructs a new RuntimeErrorException wrapping the specified error.
RuntimeErrorException(Error e, String message)
          Constructs a new RuntimeErrorException wrapping the specified error and using the supplied message.
 
Method Summary
 Throwable getCause()
          Returns the true cause of this error, the wrapped error.
 Error getTargetError()
          Returns the true cause of this error, the wrapped error.
 
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

RuntimeErrorException

public RuntimeErrorException(Error e)
Constructs a new RuntimeErrorException wrapping the specified error.

Parameters:
e - the error to be wrapped.

RuntimeErrorException

public RuntimeErrorException(Error e,
                             String message)
Constructs a new RuntimeErrorException wrapping the specified error and using the supplied message.

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

getCause

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

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

getTargetError

public Error getTargetError()
Returns the true cause of this error, the wrapped error.

Returns:
the wrapped error.