pub enum AssertionError {
NullPointer,
Parsing,
CouldNotAssert,
RuleNetwork,
Unknown(u32),
}Expand description
Why asserting a fact from text failed.
Variants§
NullPointer
A required argument was NULL; a bug in this crate.
Parsing
The fact text is syntactically invalid.
CouldNotAssert
CLIPS declined the assertion, typically because an identical fact already exists and duplicates are not allowed.
RuleNetwork
An evaluation error occurred as the fact propagated through the rule network.
Unknown(u32)
A code this crate does not recognise, reported rather than silently treated as success. Seeing one means CLIPS gained a code since 6.4.2 or the declaration is wrong.
Trait Implementations§
Source§impl Clone for AssertionError
impl Clone for AssertionError
impl Copy for AssertionError
Source§impl Debug for AssertionError
impl Debug for AssertionError
impl Eq for AssertionError
Source§impl From<u32> for AssertionError
impl From<u32> for AssertionError
Source§impl PartialEq for AssertionError
impl PartialEq for AssertionError
impl StructuralPartialEq for AssertionError
Auto Trait Implementations§
impl Freeze for AssertionError
impl RefUnwindSafe for AssertionError
impl Send for AssertionError
impl Sync for AssertionError
impl Unpin for AssertionError
impl UnsafeUnpin for AssertionError
impl UnwindSafe for AssertionError
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