~/talk

Error Handling is Cancelling Operations

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
links:none on file
slides:none on file

Argument: error handling — whether error codes, errno, exceptions, or error monads — functions to cancel dependent operations so upstream success becomes a precondition for downstream work. Concrete examples include network authentication that aborts subsequent calls, RAII and destructors enforcing acquire/release semantics, exception-safety levels (basic/strong) and surprises around uncaught_exceptions (C++17). Practical fixes shown: validate at boundaries, use custom allocators to precheck memory, and prefer cancel-before-fail strategies.

AI-written summary · about

  1. 0:00Intro
  2. 9:33Exceptions
  3. 14:56Resources
  4. 21:14Uncaught Exceptions
  5. 32:06Basic Operations
  6. 34:36Explicit Recognition
  7. 37:16Dependency
  8. 43:12Additional Space
  9. 47:48Other Situations
  10. 50:01Exception Guarantee
  11. 52:33Out of Memory
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.