HTML and CSS Reference
In-Depth Information
Unlike Java, only a single
catch
block can be provided, and this block must then determine
the cause of the exception. If required the
catch
block can throw another exception.
Try/catch blocks should be provided to catch application logic exceptions, not to hide cod-
ing bugs. We will explore this topic further later in the topic.