InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.
As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "target exception" that is provided at construction time and accessed via the {@link #getTargetException()} method is now known as the cause,and may be accessed via the {@link Throwable#getCause()} method,as well as the aforementioned "legacy method."
@see Method
@see Constructor