public class ReflectionException extends JMException
ReflectionException.
Calling getTargetException() will return the wrapped
exception.| Constructor and Description |
|---|
ReflectionException(java.lang.Exception e)
Constructs a new
ReflectionException wrapping
the specified exception. |
ReflectionException(java.lang.Exception e,
java.lang.String message)
Constructs a new
ReflectionException wrapping
the specified exception and using the supplied message. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Returns the true cause of this exception, the wrapped
exception.
|
java.lang.Exception |
getTargetException()
Returns the true cause of this exception, the wrapped
exception.
|
public ReflectionException(java.lang.Exception e)
ReflectionException wrapping
the specified exception.e - the exception to be wrapped.public ReflectionException(java.lang.Exception e, java.lang.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 java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic java.lang.Exception getTargetException()