August 2018
Beginner
594 pages
22h 33m
English
An exception is a type of error that occurs during program execution that we expect may happen. They are issues that are known to occur and an application can be designed to recognize and handle them.
Exceptions can occur for a variety of reasons. Some examples include attempting to use a null object reference, attempting to access an array using an index that is out of range, exceeding a specified timeout, being unable to write to a file, or the inability to connect to a database. Many programming languages provide ways to handle exceptions and transfer the flow of execution to a different part of the logic. For example, in the C# language, we can use try/catch/finally statements to handle exceptions.
Ineffective exception ...