Exception Handling
Listings
All links in this category.
Showing 1–9 of 9 editor-approved links.
Introduces the concept of exception handling for handling program errors.
Shows what object construction, and construction failure, mean in C++; and that function try blocks are useful to translate an exception thrown from a base or member subobject constructor.
It is becoming increasingly popular to consider throwing destructors a bad practice. This document presents some insights on the problem and shows that maybe throwing from a destructor is not such a bad idea.
Describes an optimization that produces modest but useful gains on some existing C++ code, but produces very significant size and speed gains on code that uses empty exception specifications, avoiding otherwise serious performance losses.
Presents some guidelines when to use exceptions.
The ACCU is a non-profit organisation devoted to professionalism in programming at all levels. Although primarily focussed on C and C++, they also have interests in Java, C# and Python.
Lessons learned from specifying exception-safety for the C++ standard library.
Reviews guidelines developed years ago for throwing exceptions and how to use exception specifications.
Discusses how to analyze the exception safety of a function. (Andrei Alexandrescu and David B. Held)
See also