pub enum Error {
Show 21 variants
PathIndexOutOfRange {
idx: usize,
len: usize,
},
MatchIndexOutOfRange {
idx: usize,
len: usize,
},
UnexpectedEndOfRhs,
UnexpectedRhsEntry,
UnexpectedObjectInRhs,
Todo,
InvalidIndex {
len: usize,
source: ParseIntError,
},
ArrIndexOutOfRange {
idx: usize,
len: usize,
},
ArrayPaddingLimit {
idx: usize,
len: usize,
used: usize,
max: usize,
},
ModifierBudgetLimit {
used: usize,
max: usize,
},
ShiftBudgetLimit {
used: usize,
max: usize,
},
IndexTooLong {
len: usize,
max: usize,
},
InvalidIndexVal {
kind: &'static str,
},
KeyNotFound(MissingKey),
EvalString,
ShiftEmptyPath,
ShiftPathNotEmpty,
ParseError(String),
InvalidFunction(String),
FunctionArgumentError(String),
PathEvaluationError(String),
}Variants§
PathIndexOutOfRange
MatchIndexOutOfRange
UnexpectedEndOfRhs
UnexpectedRhsEntry
UnexpectedObjectInRhs
Todo
InvalidIndex
Holds only the length of the index string. The string is a matched key or a value from the request body, and callers log these errors.
ArrIndexOutOfRange
ArrayPaddingLimit
ModifierBudgetLimit
ShiftBudgetLimit
used is the total the run would have reached with the failed charge, as in
ModifierBudgetLimit. It is not what was spent before it.
IndexTooLong
InvalidIndexVal
Holds only the kind of the value, such as “object” or “number (negative)”. The value comes from the request body, and callers log these errors.
KeyNotFound(MissingKey)
EvalString
ShiftEmptyPath
ShiftPathNotEmpty
ParseError(String)
InvalidFunction(String)
FunctionArgumentError(String)
PathEvaluationError(String)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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