* is a wrapper class.
* @return the resulting value of the method invocation.
*
- * @throws Exception if the method invocation fails.
+ * @throws Throwable if the method invocation fails.
*/
Object invoke(Object self, Method thisMethod, Method proceed,
- Object[] args) throws Exception;
+ Object[] args) throws Throwable;
}
* f.setSuperclass(Foo.class);
* MethodHandler mi = new MethodHandler() {
* public Object invoke(Object self, Method m, Method proceed,
- * Object[] args) throws Exception {
+ * Object[] args) throws Throwable {
* System.out.println("Name: " + m.getName());
* proceed.invoke(self, args); // execute the original method.
* }