April 2022
Intermediate to advanced
528 pages
13h 34m
English
Cippi handles errors.
First of all, according to the C++ Core Guidelines, the following actions are involved in error handling:
Detect an error.
Transmit information about an error to some handler code.
Preserve the valid state of a program.
Avoid resource leaks.
You should use exceptions for error handling. David Abrahams, one of the founders of the Boost C++ Library and former member of the ISO C++ standardization committee, formalized in the document “Exception Safety in Generic Components” what exception safety means. “Abrahams guarantees” describe a contract that is fundamental if you think about exception ...
Read now
Unlock full access