|
|||||||||
| 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
javassist.tools.reflect.CannotInvokeException
public class CannotInvokeException
Thrown when method invocation using the reflection API has thrown an exception.
Metaobject.trapMethodcall(int, Object[]),
ClassMetaobject.trapMethodcall(int, Object[]),
ClassMetaobject.invoke(Object, int, Object[]),
Serialized Form| Constructor Summary | |
|---|---|
CannotInvokeException(java.lang.ClassNotFoundException e)
Constructs a CannotInvokeException with an ClassNotFoundException. |
|
CannotInvokeException(java.lang.IllegalAccessException e)
Constructs a CannotInvokeException with an IllegalAccessException. |
|
CannotInvokeException(java.lang.reflect.InvocationTargetException e)
Constructs a CannotInvokeException with an InvocationTargetException. |
|
CannotInvokeException(java.lang.String reason)
Constructs a CannotInvokeException with an error message. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getReason()
Returns the cause of this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CannotInvokeException(java.lang.String reason)
public CannotInvokeException(java.lang.reflect.InvocationTargetException e)
public CannotInvokeException(java.lang.IllegalAccessException e)
public CannotInvokeException(java.lang.ClassNotFoundException e)
| Method Detail |
|---|
public java.lang.Throwable getReason()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||