pub enum SkillFileError {
Io(Error),
Yaml(Error),
Parse(String),
InvalidPath(String),
CommandExecution(String),
VariableNotFound(String),
SkillNotFound(String),
ToolNotAllowed(String),
ApprovalRequired(String),
Regex(Error),
}Expand description
Errors that can occur when working with skill files.
Variants§
Io(Error)
IO error when reading/writing files.
Yaml(Error)
YAML parsing error in frontmatter.
Parse(String)
General parsing error.
InvalidPath(String)
Invalid path provided.
CommandExecution(String)
Shell command execution error.
VariableNotFound(String)
Variable not found during substitution.
SkillNotFound(String)
Skill not found in registry.
ToolNotAllowed(String)
Tool not allowed for skill execution.
ApprovalRequired(String)
Skill requires user approval before execution.
Regex(Error)
Regex compilation error.
Trait Implementations§
Source§impl Debug for SkillFileError
impl Debug for SkillFileError
Source§impl Display for SkillFileError
impl Display for SkillFileError
Source§impl Error for SkillFileError
impl Error for SkillFileError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for SkillFileError
impl From<Error> for SkillFileError
Source§impl From<Error> for SkillFileError
impl From<Error> for SkillFileError
Auto Trait Implementations§
impl Freeze for SkillFileError
impl !RefUnwindSafe for SkillFileError
impl Send for SkillFileError
impl Sync for SkillFileError
impl Unpin for SkillFileError
impl !UnwindSafe for SkillFileError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more