On Mon, Jul 10, 2017 at 9:46 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote:
> 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. Well, this has been in FPC/Delphi from the start Ultimately handling multiple exceptions in one catch block is the whole purpose of having exception mechanism in a language. You can also have a single catch block with a comma separated list of > exception types. > I think it's actually Pipe separated. And is that true, that the variable specified for catching such exception would default to a common "Exception" class? Not available in freepascal indeed. > Then lastly, you can even add a finally block in there too Also not available, but people are asking : https://bugs.freepascal.org/view.php?id=24216
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal