Introduction

The java.lang.reflect Exceptions contains the exceptions which can occur during reflection operations.

Exceptions Summary

Sr.No.Exception & Description
1InvocationTargetExceptionInvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.
2MalformedParameterizedTypeExceptionThrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it.
3UndeclaredThrowableExceptionThrown 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.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *