pub enum SkillError {
Show 16 variants
NotFound(String),
Timeout(u64),
PermissionDenied {
required: Vec<SkillPermission>,
},
ToolExecution(String),
Wasm(String),
ConfigValidation(String),
VersionMismatch {
required: String,
},
PreflightFailed(String),
Disabled(String),
Io(Error),
Yaml(String),
InvalidWasm(String),
Http(String),
ParseError(String),
MissingField(String),
InvalidFormat(String),
}Expand description
Skill system errors
Variants§
NotFound(String)
The requested skill was not found.
Timeout(u64)
Execution exceeded the configured timeout.
PermissionDenied
The operation was denied due to insufficient permissions.
Fields
required: Vec<SkillPermission>The permissions that would be required.
ToolExecution(String)
A tool failed during execution.
Wasm(String)
An error occurred in the WASM runtime.
ConfigValidation(String)
Configuration validation failed.
VersionMismatch
The skill requires a newer agent version.
PreflightFailed(String)
A preflight check failed before execution.
Disabled(String)
The skill is disabled and cannot be used.
Io(Error)
An I/O error occurred.
Yaml(String)
Failed to parse YAML content.
InvalidWasm(String)
The WASM binary is invalid.
Http(String)
An HTTP request failed.
ParseError(String)
A parse error occurred while reading a skill definition file.
MissingField(String)
A required field is missing from a skill definition.
InvalidFormat(String)
The skill definition file had an invalid format.
Implementations§
Source§impl SkillError
impl SkillError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Returns true if this error can be retried.
Transient errors (timeout, tool execution failure, HTTP failures, IO errors) are retryable. All other errors are permanent and should not be retried without intervention.
Trait Implementations§
Source§impl Debug for SkillError
impl Debug for SkillError
Source§impl Display for SkillError
impl Display for SkillError
Source§impl Error for SkillError
impl Error for SkillError
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()