Package javassist.tools.reflect
Class CannotInvokeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javassist.tools.reflect.CannotInvokeException
- All Implemented Interfaces:
Serializable
Thrown when method invocation using the reflection API has thrown
an exception.
-
Constructor Summary
ConstructorDescriptionConstructs a CannotInvokeException with an ClassNotFoundException.Constructs a CannotInvokeException with an IllegalAccessException.Constructs a CannotInvokeException with an InvocationTargetException.CannotInvokeException
(String reason) Constructs a CannotInvokeException with an error message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CannotInvokeException
Constructs a CannotInvokeException with an error message. -
CannotInvokeException
Constructs a CannotInvokeException with an InvocationTargetException. -
CannotInvokeException
Constructs a CannotInvokeException with an IllegalAccessException. -
CannotInvokeException
Constructs a CannotInvokeException with an ClassNotFoundException.
-
-
Method Details
-
getReason
Returns the cause of this exception. It may return null.
-