0Pricing
C++ Academy · Lesson

Exception Safety

Write exception-safe code.

What Exception Safety Means

Exception safety describes what guarantees your code keeps when an exception is thrown partway through an operation.

The No-Throw Guarantee

The strongest level: the operation never throws. Destructors, swaps, and move operations should aim for this and be marked noexcept.

All lessons in this course

  1. try, catch, throw
  2. Exception Safety
  3. noexcept Specifier
  4. Custom Exception Types
← Back to C++ Academy