Add catch clause for specific type above catch-all clause

Answered

On a fairly regular basis when I have a try/catch block where the lone catch clause captures multiple exception types using a base-class exception type, I would like to be able split out the handling for a specific type of exception. The lazy programmer in me says that IDEA should be able to make this easy with an Intention to add a catch clause above the catch-all clause for a selected exception type.

http://www.jetbrains.net/jira/browse/IDEA-14594

5 comments
Comment actions Permalink

That is a very good idea.

0
Comment actions Permalink

Hits me on a regular basis as well, so +1!

0
Comment actions Permalink

News about that after 10 years?

0
Comment actions Permalink

@Andybergon 11

0

Post is closed for comments.