Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
John Wilson suggested this improved syntax for catching several exceptions at once:
This has been suggested for Java
http://members.capmac.org/~orb/blog.cgi/tech/java/Better_exception_sy.html
I would have thought it's trivial to do in Groovy
try { Field field = someClass.getDeclaredField(someField); someValue = field.getInt(Barcode.class); } catch (SecurityException, NoSuchFieldException e) { // do something else with the exception }