C++ Language/ErrorHandling/CppExceptionHandling

If some exceptionally problematic situation might occur in code (either your code or library functions that you call), enclose that code within. When your problem occurs, your code "throws an exception" by doing, and program flow will jump to the handler (even if that requires the C++ language to "unwind" a series of called functions). That data ( in this example) is an explanation for what went wrong; it is typed so you could actually program a sequence of   with   meaning "all other types".

Additional information about C++ Exception Handling