error handling

Responding to unexpected failures

Error handling is the practice of anticipating, detecting, and responding to problems that occur during program execution.

Good error handling prevents crashes and provides useful feedback: The error handling caught the missing file and displayed a friendly message.

Languages offer various mechanisms—try/catch blocks, error codes, exceptions—to manage failures gracefully rather than letting them cascade.

Related

recovery · rollback · graceful degradation · fault tolerance · throw · monitoring · diagnostics · catch · try · validation · edge case · fail fast · stack trace · alert · checksum · redundancy · assertion · undefined

Categories
Opposites
response to problems

error handlingsilent failure

Malfunction showing no symptoms

crash and burn · looking the other way · blind faith · hoping for the best · willful ignorance

control flow approach

error handlingcrashing

Colliding with force

system resilience approach

error handlingsystem crash

Complete operational breakdown

single point of failure · technical debt

Family

error, handling

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Rated G