CertC++-ERRΒΆ

Error Handling

Nested Rules

CertC++-ERR30

Take care when reading errno

CertC++-ERR32

Do not rely on indeterminate values of errno

CertC++-ERR33

Detect and handle standard library errors

CertC++-ERR34

Detect errors when converting a string to a number

CertC++-ERR50

Do not abruptly terminate the program

CertC++-ERR51

Handle all exceptions

CertC++-ERR52

Do not use setjmp() or longjmp()

CertC++-ERR53

Do not reference base classes or class data members in a constructor or destructor function-try-block handler

CertC++-ERR54

Catch handlers should order their parameter types from most derived to least derived

CertC++-ERR55

Honor exception specifications

CertC++-ERR56

Guarantee exception safety

CertC++-ERR57

Do not leak resources when handling exceptions

CertC++-ERR58

Handle all exceptions thrown before main() begins executing

CertC++-ERR60

Exception objects must be nothrow copy constructible

CertC++-ERR61

Catch exceptions by lvalue reference

CertC++-ERR62

Detect errors when converting a string to a number

Options