Home Segments Top Top Previous Next

611: Mainline

If you like, you can write multiple catch blocks so that you can handle different exceptions differently. The catch block actually invoked is the one with a parameter typed by the most specific class of which the exception is an instance.