git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@268 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -41,8 +41,8 @@ public interface MethodHandler { | |||
* 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; | |||
} |
@@ -45,7 +45,7 @@ import javassist.bytecode.*; | |||
* 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. | |||
* } |