pub enum IncludeError {
Show 15 variants
Io(Error),
Parse {
format: &'static str,
source: Box<dyn StdError + Send + Sync>,
},
UnknownFormat {
path: PathBuf,
},
ReadOnly {
path: PathBuf,
},
DuplicateId {
id: String,
},
EntryNotFound {
id: String,
},
InvalidId {
id: String,
},
InvalidName,
MissingEnv {
expression: String,
},
UnknownExpression {
expression: String,
},
Unterminated {
input: String,
},
NotInTree,
Cycle,
Watch {
source: Box<dyn StdError + Send + Sync>,
},
Message {
message: String,
},
}Expand description
Errors produced while reading entry trees and loader files.
Variants§
Io(Error)
An underlying filesystem operation failed.
Parse
A config file could not be parsed or serialized.
Fields
UnknownFormat
The file extension does not map to a supported format.
ReadOnly
The target file is read-only, so configuration cannot be written back.
DuplicateId
Two entries in one tree declare the same id.
EntryNotFound
No entry with the requested id exists in the tree.
InvalidId
An entry id is empty or contains the : path separator.
InvalidName
An entry has no plugin name.
MissingEnv
A ${{ env.NAME }} template referenced an unset variable.
UnknownExpression
A ${{ ... }} template used an unsupported expression.
Unterminated
A ${{ template was never closed with }}.
NotInTree
The referenced entry does not belong to this tree.
Cycle
The requested move would place an entry inside its own subtree.
Watch
Setting up or running a file watcher failed (watch feature).
Message
Free-form message from layers composing multiple files (import cycles, unreadable sub-files).
Trait Implementations§
Source§impl Debug for IncludeError
impl Debug for IncludeError
Source§impl Display for IncludeError
impl Display for IncludeError
Source§impl Error for IncludeError
impl Error for IncludeError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()