public class InvocationFailedException extends ReflectionException
InvocationFailedException is thrown if an invocation failed. Typically invocation means a
reflective call of an AccessibleObject. Unlike
InvocationTargetException this is a RuntimeException.| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_CODE |
private static long |
serialVersionUID |
KEY_ACCESSIBLE| Constructor and Description |
|---|
InvocationFailedException(Throwable nested)
The constructor.
|
InvocationFailedException(Throwable nested,
AccessibleObject accessible)
The constructor.
|
InvocationFailedException(Throwable nested,
AccessibleObject accessible,
Object instance)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static String |
createMessage(AccessibleObject accessible,
Object instance) |
String |
getCode() |
private static Throwable |
getInvocationTargetCause(Throwable error) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessageprivate static final long serialVersionUID
public static final String MESSAGE_CODE
getCode(),
Constant Field Valuespublic InvocationFailedException(Throwable nested)
nested - is the cause of this exception.public InvocationFailedException(Throwable nested, AccessibleObject accessible)
nested - is the exception to adapt.accessible - is the AccessibleObject (Method or
Constructor) that was invoked and caused the exception.public InvocationFailedException(Throwable nested, AccessibleObject accessible, Object instance)
nested - is the exception to adapt. Typically InvocationTargetException.accessible - is the AccessibleObject (Method or
Constructor) that was invoked and caused the exception.instance - is the instance on which the invocation took place and caused the exception. It may be
null if the accessible is static.Copyright © 2001–2019 mmm-Team. All rights reserved.