pub enum SubstrateError {
Show 18 variants
NotFound(String),
InvalidTransition {
from: TaskState,
to: TaskState,
},
ClaimConflict(String),
Engine(String),
Transport(String),
Store(String),
Routing(String),
Serde(String),
Io(String),
InvalidSchedule(String),
CycleDetected(String),
DuplicateWork(String),
SchemaValidation(String),
Memory(String),
Process(String),
Watcher(String),
CloudDispatch(String),
Other(String),
}Expand description
Errors that may cross a substrate port boundary.
Adapters map their concrete failure modes (IO, process spawn, parse, network) onto these variants so that the core/application layers never depend on adapter-specific error types.
Variants§
NotFound(String)
A requested entity (task, conversation, session) was not found.
InvalidTransition
A lifecycle transition was rejected by the FSM.
Fields
ClaimConflict(String)
An atomic claim/lease could not be acquired (already held).
Engine(String)
A backing engine (CLI/process) failed.
Transport(String)
A transport (mailbox/bus) operation failed.
Store(String)
A store (persistence) operation failed.
Routing(String)
Routing could not select a target.
Serde(String)
Serialization / deserialization failed.
Io(String)
An IO error (file, pipe, process).
InvalidSchedule(String)
A schedule expression or trigger is invalid.
CycleDetected(String)
A workflow graph contains a cycle.
DuplicateWork(String)
Enqueue rejected because the body is a near-duplicate.
SchemaValidation(String)
Input failed JSON schema validation for a skill/tool.
Memory(String)
A memory port operation failed.
Process(String)
A managed subprocess operation failed.
Watcher(String)
A filesystem watcher operation failed.
CloudDispatch(String)
A cloud-dispatch adapter operation failed.
Other(String)
A catch-all for adapter-specific failures that do not fit above.
Trait Implementations§
Source§impl Debug for SubstrateError
impl Debug for SubstrateError
Source§impl Display for SubstrateError
impl Display for SubstrateError
Source§impl Error for SubstrateError
impl Error for SubstrateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()