1. A few languages support the exception-handling feature. Without this feature, the programmer needs to detect bugs on their own.
2. The errors may be logical errors or syntactic mistakes (syntax mistakes). The logical error remains in the program due to an unsatisfactory understanding of the program. The syntax mistakes are due to a lack of understanding of the programming language itself.
3. ANSI C++ is built in language functions for trapping errors and controlling exceptions. All C++ compilers support this newly added facility.
4. C++ provides a type-secure, integrated procedure for coping with the predictable but peculiar conditions that arise in run time.
5. The goal of exception handling is to create a routine that detects and sends an exceptional condition in order to execute suitable actions.
6. An exception is an object. It is sent from the part of the program where an error occurs to the part of the program that is going to control the error.
7. C++ exception method provides three keywords; they are try, throw, and catch. The keyword try is used at the starting of exception. The entire exception statements are enclosed in curly braces. It is known as try block.
8. The catch block receives the exception sent by the throw block in the try block.
9. We can also define multiple catch blocks; in the try block, such programs also contains multiple throw statements based on certain conditions.
10. It is also possible to define a single or default catch block from one or more exceptions of different types. In such a situation, a single catch block is used for catching exceptions thrown by the multiple throw statements.
11. It is also possible to again pass the Âexception received to another exception handler; that is, an exception is thrown from the catch block; this is known as a re-throwing exception.
12. The specified exceptions are used when we want to bind the function to throw only the specified exception. Specific exception is thrown using condition statement and list of data items in throw.