pub enum RosieError {
Success = 0,
MiscErr = -1,
OutOfMemory = -2,
SysCallFailed = -3,
EngineCallFailed = -4,
ExpressionError = -1_001,
PackageError = -1_002,
ArgError = -1_003,
}Expand description
An error code from a Rosie operation
Variants§
Success = 0
No error occurred.
MiscErr = -1
An unknown error occurred.
OutOfMemory = -2
The Rosie Engine could not allocate the needed memory, either because the system allocator failed or because the limit set by rosie_alloc_limit was reached.
SysCallFailed = -3
A system API call failed.
EngineCallFailed = -4
A failure occurred in the librosie engine.
ExpressionError = -1_001
An error related to a pattern input has occurred, for example, an rpl syntax error.
PackageError = -1_002
An error related to a package input has occurred, for example a missing package or .rpl file,
a missing package declaration in the file, or another syntax error in the package.rpl file.
ArgError = -1_003
An invalid argument was passed to a rosie function.
Implementations§
Trait Implementations§
Source§impl Clone for RosieError
impl Clone for RosieError
Source§fn clone(&self) -> RosieError
fn clone(&self) -> RosieError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RosieError
impl Debug for RosieError
Source§impl Hash for RosieError
impl Hash for RosieError
Source§impl PartialEq for RosieError
impl PartialEq for RosieError
impl Copy for RosieError
impl Eq for RosieError
impl StructuralPartialEq for RosieError
Auto Trait Implementations§
impl Freeze for RosieError
impl RefUnwindSafe for RosieError
impl Send for RosieError
impl Sync for RosieError
impl Unpin for RosieError
impl UnwindSafe for RosieError
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