This functionality is already planned for Ariadna.

Jason Boehle
[EMAIL PROTECTED]


-----Original Message-----
From: Timothy M. Dean [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 12, 2002 10:23 AM
To: [EMAIL PROTECTED]
Subject: [Eap-list] Catching additional exceptions


Let's say I have some code that throws an exception. I select the code and
select "Surround With" (Ctrl-Alt-T). I then select "try/catch" (6) from the
list of choices. A try/catch block is created with a separate catch block
for each checked exception that is thrown within the selected code. This is
a fabulous feature...

Now let's say I go into the same piece of code and modify it in some way
that causes *additional* exception(s) to be thrown. It would be so nice if
IDEA would allow me to select the existing try/catch block and automatically
update to include new exceptions that are thrown. As it stands now, I have
to either

   (a) manually figure out which new exceptions are thrown and add the catch
statements myself
   (b) delete the previously-generated try/catch and re-execute the Surround
With...

How hard would it be to enhance try/catch generation in this way?

- Tim


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to