Tag view

#exceptions

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with exceptions

3 cards

Python Medium Theory

Built-in exceptions, try/except/else/finally, custom exceptions, and chaining

Python exception handling is strongest when you catch specific built-in errors, use `else` for the success path, `finally` for cleanup, and custom exceptions when domain meaning matters.

  • Catch only expected failures
  • `else` runs when no exception occurred
  • `raise ... from ...` preserves causal context

Built-in exceptions, try/except/else/finally, custom exceptions, and chaining