pub enum ValueError {
Show 63 variants
IncompatibleLiteralForDataType {
data_type: DataType,
literal: String,
},
IncompatibleDataType {
data_type: DataType,
value: Value,
},
NullValueOnNotNullField,
FailedToParseNumber,
FloatToDecimalConversionFailure(f64),
FailedToParseDate(String),
FailedToParseTimestamp(String),
FailedToParseTime(String),
FailedToParseUUID(String),
FailedToParsePoint(String),
FailedToParseDecimal(String),
FailedToParseHexString(String),
FailedToParseInetString(String),
NonNumericMathOperation {
lhs: Value,
rhs: Value,
operator: NumericBinaryOperator,
},
DivisorShouldNotBeZero,
UnaryPlusOnNonNumeric,
UnaryMinusOnNonNumeric,
FactorialOnNonNumeric,
FactorialOnNonInteger,
FactorialOnNegativeNumeric,
FactorialOverflow,
UnaryBitwiseNotOnNonNumeric,
UnaryBitwiseNotOnNonInteger,
UnreachableNumberParsing,
UnimplementedCast {
value: Value,
data_type: DataType,
},
CastFromHexToByteaFailed(String),
LiteralCastFromTextToIntegerFailed(String),
LiteralCastFromTextToUnsignedInt8Failed(String),
LiteralCastFromTextToUint16Failed(String),
LiteralCastFromTextToUint32Failed(String),
LiteralCastFromTextToUint64Failed(String),
LiteralCastFromTextToUint128Failed(String),
LiteralCastFromTextToFloatFailed(String),
LiteralCastFromTextToDecimalFailed(String),
LiteralCastToBooleanFailed(String),
LiteralCastToDateFailed(String),
LiteralCastToDataTypeFailed(DataType, String),
LiteralCastToInt8Failed(String),
LiteralCastToUnsignedInt8Failed(String),
LiteralCastToUint16Failed(String),
LiteralCastToUint32Failed(String),
LiteralCastToUint64Failed(String),
LiteralCastToUint128Failed(String),
LiteralCastToTimeFailed(String),
LiteralCastToTimestampFailed(String),
UnreachableLiteralCastFromNumberToInteger(String),
UnreachableLiteralCastFromNumberToFloat(String),
UnimplementedLiteralCast {
data_type: DataType,
literal: String,
},
UnreachableIntegerOverflow(String),
LikeOnNonString {
base: Value,
pattern: Value,
case_sensitive: bool,
},
ExtractFormatNotMatched {
value: Value,
field: DateTimeField,
},
BigEndianExportNotSupported(String),
InvalidJsonString(String),
JsonObjectTypeRequired,
JsonArrayTypeRequired,
UnreachableJsonNumberParseFailure(String),
SelectorRequiresMapOrListTypes,
BinaryOperationOverflow {
lhs: Value,
rhs: Value,
operator: NumericBinaryOperator,
},
SqrtOnNonNumeric(Value),
NonStringParameterInPosition {
from: Value,
sub: Value,
},
NonStringParameterInFindIdx {
sub: Value,
from: Value,
},
NonPositiveIntegerOffsetInFindIdx(String),
ValueToExprConversionFailure,
}
Variants§
IncompatibleLiteralForDataType
IncompatibleDataType
NullValueOnNotNullField
FailedToParseNumber
FloatToDecimalConversionFailure(f64)
FailedToParseDate(String)
FailedToParseTimestamp(String)
FailedToParseTime(String)
FailedToParseUUID(String)
FailedToParsePoint(String)
FailedToParseDecimal(String)
FailedToParseHexString(String)
FailedToParseInetString(String)
NonNumericMathOperation
DivisorShouldNotBeZero
UnaryPlusOnNonNumeric
UnaryMinusOnNonNumeric
FactorialOnNonNumeric
FactorialOnNonInteger
FactorialOnNegativeNumeric
FactorialOverflow
UnaryBitwiseNotOnNonNumeric
UnaryBitwiseNotOnNonInteger
UnreachableNumberParsing
UnimplementedCast
CastFromHexToByteaFailed(String)
LiteralCastFromTextToIntegerFailed(String)
LiteralCastFromTextToUnsignedInt8Failed(String)
LiteralCastFromTextToUint16Failed(String)
LiteralCastFromTextToUint32Failed(String)
LiteralCastFromTextToUint64Failed(String)
LiteralCastFromTextToUint128Failed(String)
LiteralCastFromTextToFloatFailed(String)
LiteralCastFromTextToDecimalFailed(String)
LiteralCastToBooleanFailed(String)
LiteralCastToDateFailed(String)
LiteralCastToDataTypeFailed(DataType, String)
LiteralCastToInt8Failed(String)
LiteralCastToUnsignedInt8Failed(String)
LiteralCastToUint16Failed(String)
LiteralCastToUint32Failed(String)
LiteralCastToUint64Failed(String)
LiteralCastToUint128Failed(String)
LiteralCastToTimeFailed(String)
LiteralCastToTimestampFailed(String)
UnreachableLiteralCastFromNumberToInteger(String)
UnreachableLiteralCastFromNumberToFloat(String)
UnimplementedLiteralCast
UnreachableIntegerOverflow(String)
LikeOnNonString
ExtractFormatNotMatched
BigEndianExportNotSupported(String)
InvalidJsonString(String)
JsonObjectTypeRequired
JsonArrayTypeRequired
UnreachableJsonNumberParseFailure(String)
SelectorRequiresMapOrListTypes
BinaryOperationOverflow
SqrtOnNonNumeric(Value)
NonStringParameterInPosition
NonStringParameterInFindIdx
NonPositiveIntegerOffsetInFindIdx(String)
ValueToExprConversionFailure
Trait Implementations§
Source§impl Debug for ValueError
impl Debug for ValueError
Source§impl Display for ValueError
impl Display for ValueError
Source§impl Error for ValueError
impl Error for ValueError
1.30.0 · 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()
Source§impl From<ValueError> for Error
impl From<ValueError> for Error
Source§fn from(e: ValueError) -> Error
fn from(e: ValueError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for ValueError
impl PartialEq for ValueError
Source§impl Serialize for ValueError
impl Serialize for ValueError
impl StructuralPartialEq for ValueError
Auto Trait Implementations§
impl Freeze for ValueError
impl RefUnwindSafe for ValueError
impl Send for ValueError
impl Sync for ValueError
impl Unpin for ValueError
impl UnwindSafe for ValueError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more