javax.management

Class RuntimeErrorException

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 {@link RuntimeErrorException}. Calling {@link getTargetError()} will return the wrapped exception.

Since: 1.5

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
ThrowablegetCause()
Returns the true cause of this error, the wrapped error.
ErrorgetTargetError()
Returns the true cause of this error, the wrapped error.

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.

Returns: the wrapped error.

getTargetError

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

Returns: the wrapped error.