pub enum SkillError {
Io {
path: PathBuf,
source: Error,
},
MissingFrontmatter {
path: PathBuf,
},
InvalidFrontmatter {
path: PathBuf,
message: String,
},
MissingRequiredField {
path: PathBuf,
field: &'static str,
},
SkillTooLarge {
path: PathBuf,
bytes: usize,
limit: usize,
},
PathNotFound {
raw: String,
resolved: PathBuf,
},
BundledSkillInvalid {
name: &'static str,
message: String,
},
}Expand description
Errors surfaced during skill loading + resolution. Variants are kept distinct so downstream binaries (and the future skills-lint CLI) can report locations and surface fixes precisely.
Variants§
Io
Filesystem error reading the skill file.
MissingFrontmatter
Missing or malformed frontmatter delimiters.
InvalidFrontmatter
Frontmatter present but invalid YAML.
MissingRequiredField
Required frontmatter field missing (name or description).
SkillTooLarge
Skill body exceeds the hard size limit (16 KB by default).
PathNotFound
Path declared in the manifest’s skills: list doesn’t exist
or isn’t a directory.
BundledSkillInvalid
Compile-time bundled skill (added via add_bundled) failed to
parse. This is a framework-author or downstream-binary-author
bug — the bundled skill files should round-trip through their
own CI tests before shipping.
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)>
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()
Auto Trait Implementations§
impl Freeze for SkillError
impl !RefUnwindSafe for SkillError
impl Send for SkillError
impl Sync for SkillError
impl Unpin for SkillError
impl UnsafeUnpin for SkillError
impl !UnwindSafe for SkillError
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