Java 7 adds a new exception class called ReflectiveOperationException. The Javadoc documentation describes this class as a “Common superclass of exceptions thrown by reflective operations in core ...
If you really want to take full control of the exceptions you pass to your clients, you can write your own Exception class. Here's how to do that, complete with support for additional properties. If ...