|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.management.JMRuntimeException
javax.management.RuntimeErrorException
public class RuntimeErrorException
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.
| 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 |
|---|
public RuntimeErrorException(Error e)
RuntimeErrorException wrapping
the specified error.
e - the error to be wrapped.
public RuntimeErrorException(Error e,
String message)
RuntimeErrorException wrapping
the specified error and using the supplied message.
e - the error to be wrapped.message - the error message to give to the user.| Method Detail |
|---|
public Throwable getCause()
getCause in class Throwablepublic Error getTargetError()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||