pub enum ErrorCode {
Parse,
Model,
Match,
Validation,
}Expand description
A coarse category each binding maps to its own exception type.
Variants§
Parse
The pattern failed to lex or parse.
Model
A STIX object or bundle failed to deserialize or validate.
Match
Pattern evaluation failed (e.g. an unsupported feature).
Validation
An input failed facade-level validation.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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