Any simple way to deal with Exception(s)?

poppyer <[email protected]> Thu, 29 Nov 2007 14:47:58 +0000
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Hi, All,

When compiling, I often have some Exceptions which I forget to "catch".
Then for each one, I have to 
1) import the Exception class first
2) a) adding a throws statement in the method declaration.
or b1) select the code block
   b2) use C-c C-v t to add a try-catch block
   b3) move the cursor to the catch block, and add the XXXException
   manually.

Since this procedure is quite repetitive, is there any simple way to do it?

P.S. I also think about write my own elisp defun to do this, but I don't
know how to pick the XXXException from the compiling output.


Cheers,
poppyer
--