Exception handling is the collection of routines designed to handle run-time errors or other problems (exceptions) inside a computer program.
The role of exception handling is to allow the program to continue its normal operation and prevent crashing and displaying of cryptic error messages to the user.