javax.management
Class RuntimeErrorException

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

public class RuntimeErrorException
extends JMRuntimeException (src)

Thrown when a java.lang.error occurs.

See Also:
Serialized Form

Constructor Summary
RuntimeErrorException(java.lang.Error e)
          Construct a new RuntimeErrorException from a given error.
RuntimeErrorException(java.lang.Error e, java.lang.String message)
          Construct a new RuntimeErrorException from a given error and message.
 
Method Summary
 java.lang.Throwable getCause()
          Retrieves the wrapped error.
 java.lang.Error getTargetError()
          Retrieves the wrapped error.
 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

RuntimeErrorException

public RuntimeErrorException(java.lang.Error e)
Construct a new RuntimeErrorException from a given error.

Parameters:
e - the error to wrap.

RuntimeErrorException

public RuntimeErrorException(java.lang.Error e,
                             java.lang.String message)
Construct a new RuntimeErrorException from a given error and message.

Parameters:
e - the error to wrap.
message - the specified message.
Method Detail

getTargetError

public java.lang.Error getTargetError()
Retrieves the wrapped error.

Returns:
the wrapped error.

getCause

public java.lang.Throwable getCause()
Retrieves the wrapped error.

Returns:
the wrapped error.

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