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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to