Skip to main content

9 docs tagged with "design"

View all tags

Error handling — normal, near-normal, and abnormal paths

This chapter classifies the results of a process into normal, near-normal, and abnormal paths and explains handling for each. It covers the criterion separating expected from unexpected failures, when to use exceptions vs. return values, where to catch, and what to tell users and logs.