Skip to main content

Module error_codes

Module error_codes 

Source
Expand description

The error codes the daemon emits in JobError::code.

These are string constants rather than an enum so the set can grow without breaking clients that match on strings, and so a client built against an older version meets an unfamiliar code rather than a decode failure.

Constants§

CANCELLED
The job was cancelled by request.
CAPABILITY_DENIED
A guest tried to reach something its spec does not grant.
MODEL_LOAD_FAILED
The job’s model could not be loaded or served.
NOT_FOUND
A path the job may read names nothing.
SCHEMA_VALIDATION_FAILED
Job input did not match the spec’s declared shape.
SCRIPT_ERROR
A Script-kind block’s own logic failed at run time — a Rhai runtime error (e.g. an out-of-bounds index, a missing function) surfacing from inside the script itself. catalog add rejects a script whose body doesn’t parse, so this is specifically a failure that only shows up once the script actually runs; it is not a schema mismatch, so it does not reuse SCHEMA_VALIDATION_FAILED.
TIMEOUT
The job exceeded its time budget.
UNSUPPORTED
A command needed a capability this build does not have — asking for a page image without document rendering compiled in, say.
WASM_TRAP
The guest trapped — a panic, a bad export signature, or malformed wasm.