javax.management
public class ReflectionException extends JMException
ReflectionException
.
Calling getTargetException()
will return the wrapped
exception.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the true cause of this exception, the wrapped
exception.
|
Exception |
getTargetException()
Returns the true cause of this exception, the wrapped
exception.
|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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.public Throwable getCause()
public Exception getTargetException()