[fpc-pascal] Food for thought - language string improvement

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Jul 10 15:46:34 CEST 2017


On 2017-07-10 13:34, Dmitry Boyarintsev wrote:
> are you referring to "Catching More Than One Type of Exception with One
> Exception Handler" in
> https://docs.oracle.com/javase/tutorial/essential/exceptions/catch.html

Yes. You can have multiple catch blocks inside the same try block. You 
can also have a single catch block with a comma separated list of 
exception types.

Then lastly, you can even add a finally block in there too (Java calls 
this try-with-resources).

So putting those together, it looks like this:

 
https://docs.oracle.com/javase/tutorial/essential/exceptions/putItTogether.html

Regards,
   Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list