Expand description
Daemon-wide error type.
Thin thiserror enum covering every fallible surface of the daemon:
config loading, workspace lifecycle, admission control, IPC transport,
rebuild dispatch, and lifecycle management (pidfile, signals, auto-start).
Tasks 6–10 extend this enum as each surface lands.
Every variant maps cleanly to a JSON-RPC error code when the error
crosses the IPC boundary (see DaemonError::jsonrpc_code).
§Exit-code mapping (Task 9 U1)
Variants that can be returned before the IPC server binds (lifecycle errors)
map to POSIX sysexits.h exit codes via DaemonError::exit_code:
| Variant | Exit code | sysexits.h constant |
|---|---|---|
AlreadyRunning | 75 | EX_TEMPFAIL |
AutoStartTimeout | 69 | EX_UNAVAILABLE |
SignalSetup | 70 | EX_SOFTWARE |
Config | 78 | EX_CONFIG |
Io | 73 | EX_CANTCREAT |
| Other variants | 70 | EX_SOFTWARE (default) |
Enums§
- Daemon
Error - All daemon-surface error variants.
Type Aliases§
- Daemon
Result - Result alias for daemon operations.