|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.management.JMException
javax.management.ReflectionException
public class ReflectionException
Represents one of the reflection exceptions thrown by a
management bean. When a management bean tries to perform
a lookup using the reflection API and encounters an exception,
it gets wrapped inside an ReflectionException.
Calling getTargetException() will return the wrapped
exception.
| Constructor Summary | |
|---|---|
ReflectionException(Exception e)
Constructs a new ReflectionException wrapping
the specified exception. |
|
ReflectionException(Exception e,
String message)
Constructs a new ReflectionException wrapping
the specified exception and using the supplied message. |
|
| Method Summary | |
|---|---|
Throwable |
getCause()
Returns the true cause of this exception, the wrapped exception. |
Exception |
getTargetException()
Returns the true cause of this exception, the wrapped exception. |
| 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 ReflectionException(Exception e)
ReflectionException wrapping
the specified exception.
e - the exception to be wrapped.
public ReflectionException(Exception e,
String message)
ReflectionException wrapping
the specified exception and using the supplied message.
e - the exception to be wrapped.message - the error message to give to the user.| Method Detail |
|---|
public Throwable getCause()
getCause in class Throwablepublic Exception getTargetException()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||