failure.code_format
Failure code is not lower_snake_case.
Area 4, Failures; not declinable; the next step is usually the agent's.
type Missing = Failure { kind: FailureKind.not_found code: "Not Found!"}
error The code Not Found! isn't lower_snake_case
--> main.jadpo:3:11
|3 | code: "Not Found!" | ^^^^^^^^^^^^ not lower_snake_case
- reason
- A failure's code is what clients branch on and translate by, so it is lower_snake_case, like a failure's name turned into one.
- next
- Write
"not_found"(agent) - rule
- failure.
code_ format - help
- https://jadpo.
dev/docs/errors/failure. code_ format
Markdown for agents: /docs/errors/failure.code_format.md.Built from Jadpo main at aee2e8f.