java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.ReflectiveOperationException | |||
↳ | java.lang.reflect.InvocationTargetException |
This class provides a wrapper for an exception thrown by a
Method
or
Constructor
invocation.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructs a new
InvocationTargetException
instance with its
cause / target exception filled in.
|
||||||||||
|
Constructs a new
InvocationTargetException
instance with its
cause / target exception and message filled in.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructs a new
InvocationTargetException
instance with a
null
cause / target exception.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the cause of this exception, which may be
null
.
|
||||||||||
|
Returns the target exception, which may be
null
.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
|
|||||||||||
From class
java.lang.Object
|
Constructs a new
InvocationTargetException
instance with its
cause / target exception filled in.
exception | the exception which occurred while running the Method or Constructor |
---|
Constructs a new
InvocationTargetException
instance with its
cause / target exception and message filled in.
exception | the exception which occurred while running the Method or Constructor |
---|---|
detailMessage | the detail message for the exception |
Constructs a new
InvocationTargetException
instance with a
null
cause / target exception.
Returns the cause of this exception, which may be
null
.
Returns the target exception, which may be
null
.