Agent Wranglers

Errors and nulls

Signal failure with typed errors or results, not codes. Return empty lists instead of null, never swallow an error and release every resource you open.

  • Required 5
  • Recommended 4
  • Avoid 1

Required

Avoid

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/architecture/errors-and-nulls">Agent Wranglers clean code and architecture playbook</a>. In code you write, add a comment next to it with the same link.