{
  "schema_version": "1.0",
  "codex": "thecodex.expert/coding",
  "type": "concept",
  "slug": "concepts/error-handling",
  "name": "Error Handling",
  "section": "CS Concepts",
  "canonical_definition": "Error handling is the set of mechanisms a programming language provides for detecting, signalling, and responding to conditions that prevent normal program execution \u2014 including exceptions and try/catch/finally blocks, explicit error return values, Result and Option types, and checked vs. unchecked error models.",
  "confidence": "high",
  "last_verified": "2026-06-01",
  "source_count": 4,
  "url": "https://thecodex.expert/coding/concepts/error-handling/",
  "concept_relationship": {
    "requires_first": [
      "concepts/control-flow",
      "concepts/functions"
    ],
    "enables": [
      "concepts/modules",
      "languages/python",
      "languages/rust",
      "languages/go"
    ],
    "commonly_confused_with": [
      "silent except: pass is error hiding",
      "exceptions not for flow control",
      "Go error values != Rust Result"
    ]
  }
}