-
Enhancement
-
Resolution: Fixed
-
P4
-
1.2.2, 1.4.2, 6, 7
-
rc
-
generic, x86
-
generic, windows_xp
-
Verified
Name: ssT124754 Date: 03/30/2001
java version "1.2.2"
Classic VM (build JDK-1.2.2-001, native threads, symcjit)
If I need to catch three exceptions, say, NamingException, CreateException and
RemoteException (all of which are descendants of java.lang.Exception) and if I
need to take the same action for them I should not be required to catch them
one after the other. Your compiler should allow me to do something like the
following:
Exception exc;
try
{
//bunch of stuff
}
catch (NamingException, RemoteException, CreateException exc)
{
exc.getMessage ();
}
(Review ID: 119838)
======================================================================
- duplicates
-
JDK-6626834 Exception handling : catch multiple exceptions in single catch clause
-
- Closed
-
-
JDK-4909760 Extended syntax for catch statements
-
- Closed
-
- relates to
-
JDK-6943289 Project Coin: Improved Exception Handling for Java (aka 'multicatch')
-
- Closed
-