javax.management
Class RuntimeErrorException

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

public class RuntimeErrorException
extends JMRuntimeException

When a java.lang.Error occurs in the agent it should be caught and re-thrown as a RuntimeErrorException.

See Also:
Serialized Form

Constructor Summary
RuntimeErrorException(java.lang.Error err)
          Constructs a RuntimeErrorException wrapping the Error object
RuntimeErrorException(java.lang.Error err, java.lang.String message)
          Constructor that allows a specific error message to be specified.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the actual Error thrown.
 java.lang.Error getTargetError()
          Returns the actual java.lang.Error thrown
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
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 err)
Constructs a RuntimeErrorException wrapping the Error object
Parameters:
err - Error object to be wrapped by RuntimeErrorException

RuntimeErrorException

public RuntimeErrorException(java.lang.Error err,
                             java.lang.String message)
Constructor that allows a specific error message to be specified.
Parameters:
err - Error object to be wrapped by RuntimeErrorException
message - The specific error message specified
Method Detail

getTargetError

public java.lang.Error getTargetError()
Returns the actual java.lang.Error thrown
Returns:
This returns java.lang.Error thrown in this method

getCause

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