Introduction
The java.lang.reflect Exceptions contains the exceptions which can occur during reflection operations.
Exceptions Summary
Sr.No. | Exception & Description |
---|---|
1 | InvocationTargetExceptionInvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. |
2 | MalformedParameterizedTypeExceptionThrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it. |
3 | UndeclaredThrowableExceptionThrown by a method invocation on a proxy instance if its invocation handler’s invoke method throws a checked exception (a Throwable that is not assignable to RuntimeException or Error) that is not assignable to any of the exception types declared in the throws clause of the method that was invoked on the proxy instance and dispatched to the invocation handler. |
Leave a Reply