KSL: expand catch to catch code
Bo Zou
boxzou at gmail.com
Sat May 9 22:36:00 UTC 2015
This is a proposal to expand the catch keyword to catch code as follows:
} catch (*CodedException ex, "code1"*) { // only code1 is caught
} catch (*CodedException ex, "code2", "code3"*) { // both code2 and
code3 are caught
} catch (*CodedException* | IOException ex*, "code4", "code5"*) {
// catches code4, code5 and IOException
} catch (CodedException ex) { // all codes are caught
Details:
http://tri-katch.blogspot.com/2015/05/catch-code-proposal-to-expand-catch-in.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20150509/b0ba3143/attachment.html>
More information about the compiler-dev
mailing list