[jboss-user] [Javassist user questions] - Insert code just after catch
ad-rocha
do-not-reply at jboss.com
Tue Oct 21 08:12:21 EDT 2008
Hi all,
I've been trying (without success) insert code in specific places on method's body. I need to handle all exceptions using a specific class.
Something like it:
| method (param1, param2) {
| try {
| ...
| } catch (IOException e) {
| Myhandler.handler(e, param1, param2) // <-- inserted by Javassist
| ...
| } catch (Exception e) {
| Myhandler.handler(e, param1, param2) // <-- inserted by Javassist
| ...
| }
| }
|
How can I how to do this? I didn't find any way to replace code inside a method...
Thank you very much,
Andre
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183483#4183483
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183483
More information about the jboss-user
mailing list