In Summary
Exception handling is difficult to do well.
The exception handling facilities of C++ provide
mechanisms to separate error detection from error
processing.
This can significantly improve the organization and
reusability of our software.
However, it is not a substitute for careful design.
Designing software must include considering both normal
processing and error processing.
When exception handling is poorly used, it can create more
problems than it solves by creating a false sense of
security.
On the other hand, if used properly, it can improve the
robustness, maintainability, and reusability.