Enum air::LambdaError
source · pub enum LambdaError {
CanonStreamNotHaveEnoughValues {
stream_size: usize,
idx: u32,
},
EmptyStream,
FieldAccessorAppliedToStream {
field_name: String,
},
ArrayAccessorNotMatchValue {
value: Value,
idx: u32,
},
ValueNotContainSuchArrayIdx {
value: Value,
idx: u32,
},
ValueNotContainSuchField {
value: Value,
field_name: String,
},
FieldAccessorNotMatchValue {
value: Value,
field_name: String,
},
IndexAccessNotU32 {
accessor: Number,
},
ScalarAccessorHasInvalidType {
scalar_accessor: Value,
},
StreamAccessorHasInvalidType {
scalar_accessor: Value,
},
}
Expand description
Describes errors related to applying lambdas to values.
Variants§
CanonStreamNotHaveEnoughValues
EmptyStream
An error occurred while trying to apply lambda to an empty stream.
FieldAccessorAppliedToStream
ArrayAccessorNotMatchValue
ValueNotContainSuchArrayIdx
ValueNotContainSuchField
FieldAccessorNotMatchValue
IndexAccessNotU32
ScalarAccessorHasInvalidType
StreamAccessorHasInvalidType
Trait Implementations§
source§impl Clone for LambdaError
impl Clone for LambdaError
source§fn clone(&self) -> LambdaError
fn clone(&self) -> LambdaError
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 LambdaError
impl Debug for LambdaError
source§impl Display for LambdaError
impl Display for LambdaError
source§impl Error for LambdaError
impl Error for LambdaError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<LambdaError> for CatchableError
impl From<LambdaError> for CatchableError
source§fn from(source: LambdaError) -> Self
fn from(source: LambdaError) -> Self
Converts to this type from the input type.
source§impl From<LambdaError> for Rc<CatchableError>
impl From<LambdaError> for Rc<CatchableError>
source§fn from(e: LambdaError) -> Self
fn from(e: LambdaError) -> Self
Converts to this type from the input type.