+1

Dunno how hard it would be to do but this sounds like a very good idea to me

H


Timothy M. Dean wrote:

> 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