pub enum SpecError {
NotFound(String),
InvalidFormat(String),
ValidationFailed(Vec<ValidationError>),
ParseError {
path: String,
line: usize,
message: String,
},
CircularDependency {
specs: Vec<String>,
},
InheritanceConflict(String),
IoError(Error),
YamlError(Error),
JsonError(Error),
ConversationError(String),
}Expand description
Errors that can occur in the specification system
Variants§
NotFound(String)
Spec not found
InvalidFormat(String)
Invalid spec format
ValidationFailed(Vec<ValidationError>)
Validation failed
ParseError
Parse error with location information
Fields
CircularDependency
Circular dependency detected
InheritanceConflict(String)
Inheritance conflict
IoError(Error)
IO error
YamlError(Error)
YAML parsing error
JsonError(Error)
JSON error
ConversationError(String)
Conversation error
Trait Implementations§
Source§impl Error for SpecError
impl Error for SpecError
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 SpecError
impl !RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl !UnwindSafe for SpecError
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