Exception handling in C++ provides you with a way of handling unexpected circumstances like runtime errors. So whenever an unexpected circumstance occurs, the program control is transferred to special functions known as handlers.
To catch the exceptions, you place some section of code under exception inspection. The section of code is placed within the try-catch block.
If an exceptional situation occurs within that section of code, an exception will be thrown. Next, the exception handler will take over control of the