The idea with exception handling is that our code is able to respond to exceptions (odd/strange conditions that may happen and require special processing).

Many languages (sans C, of course) have exception handling. I’ve seen these in Java with try and catch statements.

Language-specific

In C++

C++ also has the noexcept keyword, appended to the back of a function definition. This instructs the user/compiler (via a compiler warning) that a function may not throw an exception, and if it does that terminate must be called.