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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal