pub enum SyaraError {
FileNotFound(String),
ParseError {
line: usize,
message: String,
},
DuplicateIdentifier(String, String),
UndefinedIdentifier {
identifier: String,
rule: String,
},
InvalidPattern {
pattern: String,
reason: String,
},
ConditionParse(String),
ComponentNotFound {
kind: String,
name: String,
},
Io(Error),
SemanticError(String),
ClassifierError(String),
LlmError(String),
PhashError(String),
}Variants§
FileNotFound(String)
ParseError
DuplicateIdentifier(String, String)
UndefinedIdentifier
InvalidPattern
ConditionParse(String)
ComponentNotFound
Io(Error)
SemanticError(String)
ClassifierError(String)
LlmError(String)
PhashError(String)
Trait Implementations§
Source§impl Debug for SyaraError
impl Debug for SyaraError
Source§impl Display for SyaraError
impl Display for SyaraError
Source§impl Error for SyaraError
impl Error for SyaraError
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 SyaraError
impl !RefUnwindSafe for SyaraError
impl Send for SyaraError
impl Sync for SyaraError
impl Unpin for SyaraError
impl UnsafeUnpin for SyaraError
impl !UnwindSafe for SyaraError
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