We are thinking of ways to implement this. We probably will provide some
kind of "IntentionAction" for this.

Best regards,
Valentin Kipiatkov
-----------------------------------------------------------
 IntelliJ Software, http://www.intellij.com/
 "Develop with pleasure"
-----------------------------------------------------------

----- Original Message -----
From: "Timothy M. Dean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 7:23 PM
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