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.
SCHEMA_VALIDATION_FAILED
Job input did not match the spec’s declared shape.
TIMEOUT
The job exceeded its time budget.
WASM_TRAP
The guest trapped — a panic, a bad export signature, or malformed wasm.