What Is an Exception?

As the name implies, an exception is an exceptional condition. An exception is something out of the ordinary. Most often, exceptions are used as a way to report error conditions.

Exceptions provide notification of errors and a way to handle them. This control structure allows us to specify exactly where to handle specific types of errors.

Scroll to Top