pub enum ValidationError {
DataFusion {
source: DataFusionError,
},
Validation {
message: String,
},
Configuration {
message: String,
},
ColumnNotFound {
column_name: String,
},
TypeMismatch {
message: String,
},
ColumnNullabilityMismatch {
column_name: String,
expected: bool,
},
Schema {
message: String,
},
Column {
message: String,
},
}
Variants§
DataFusion
Fields
§
source: DataFusionError
Validation
Configuration
ColumnNotFound
TypeMismatch
ColumnNullabilityMismatch
Schema
Column
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ValidationError
impl ErrorCompat for ValidationError
Source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl From<DataFusionError> for ValidationError
impl From<DataFusionError> for ValidationError
Source§fn from(source: DataFusionError) -> Self
fn from(source: DataFusionError) -> Self
Converts to this type from the input type.
Source§impl<__T0> IntoError<ValidationError> for ColumnNotFoundSnafu<__T0>
impl<__T0> IntoError<ValidationError> for ColumnNotFoundSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<ValidationError> for ColumnNullabilityMismatchSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<ValidationError> for ColumnNullabilityMismatchSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Source§impl<__T0> IntoError<ValidationError> for ColumnSnafu<__T0>
impl<__T0> IntoError<ValidationError> for ColumnSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Source§impl<__T0> IntoError<ValidationError> for ConfigurationSnafu<__T0>
impl<__T0> IntoError<ValidationError> for ConfigurationSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Source§impl IntoError<ValidationError> for DataFusionSnafu
impl IntoError<ValidationError> for DataFusionSnafu
Source§type Source = DataFusionError
type Source = DataFusionError
The underlying error
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Source§impl<__T0> IntoError<ValidationError> for SchemaSnafu<__T0>
impl<__T0> IntoError<ValidationError> for SchemaSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Source§impl<__T0> IntoError<ValidationError> for TypeMismatchSnafu<__T0>
impl<__T0> IntoError<ValidationError> for TypeMismatchSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Source§impl<__T0> IntoError<ValidationError> for ValidationSnafu<__T0>
impl<__T0> IntoError<ValidationError> for ValidationSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ValidationError
fn into_error(self, error: Self::Source) -> ValidationError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for ValidationError
impl !RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl !UnwindSafe for ValidationError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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