Agent Wranglers

Errors and nulls

Throw clear, typed errors instead of returning codes. Never return or pass null, and give every field a value unless absence is a real state.

  • Required 6
  • Recommended 1

Required

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers architecture playbook: https://agentwranglers.se/playbook/architecture/errors-and-nulls.