pub enum DriftError {
Show 15 variants
Error(String),
RuleLengthError,
ParseIntError(ParseIntError),
ComputeError(String),
ShapeError(String),
MissingFeatureError(String),
MissingFeaturesError,
SampleDataError(String),
SetControlValueError(String),
FeatureArrayLengthError,
CreateBinsError(String),
FeatureMismatchError(String, String),
ConcatenateError(String),
InvalidConfigError(String),
InvalidDriftTypeError,
}Variants§
Error(String)
RuleLengthError
ParseIntError(ParseIntError)
ComputeError(String)
ShapeError(String)
MissingFeatureError(String)
MissingFeaturesError
SampleDataError(String)
SetControlValueError(String)
FeatureArrayLengthError
CreateBinsError(String)
FeatureMismatchError(String, String)
ConcatenateError(String)
InvalidConfigError(String)
InvalidDriftTypeError
Implementations§
Source§impl DriftError
impl DriftError
pub fn raise<T>(self) -> Result<T, Self>
pub fn traced_rule_length_error() -> Self
pub fn traced_compute_error(err: impl Display) -> Self
pub fn traced_shape_error(err: impl Display) -> Self
pub fn traced_missing_feature_error(err: impl Display) -> Self
pub fn traced_sample_data_error(err: impl Display) -> Self
pub fn traced_set_control_value_error(err: impl Display) -> Self
pub fn traced_feature_length_error() -> Self
pub fn traced_missing_features_error() -> Self
pub fn traced_create_bins_error(err: impl Display) -> Self
pub fn traced_feature_mismatch_error( feature: impl Display, available: impl Display, ) -> Self
Trait Implementations§
Source§impl Debug for DriftError
impl Debug for DriftError
Source§impl Display for DriftError
impl Display for DriftError
Source§impl Error for DriftError
impl Error for DriftError
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<DriftError> for DataFrameError
impl From<DriftError> for DataFrameError
Source§fn from(source: DriftError) -> Self
fn from(source: DriftError) -> Self
Converts to this type from the input type.
Source§impl From<DriftError> for ScouterError
impl From<DriftError> for ScouterError
Source§fn from(source: DriftError) -> Self
fn from(source: DriftError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for DriftError
impl From<ParseIntError> for DriftError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DriftError
impl PartialEq for DriftError
Source§impl TracedError for DriftError
impl TracedError for DriftError
impl StructuralPartialEq for DriftError
Auto Trait Implementations§
impl Freeze for DriftError
impl RefUnwindSafe for DriftError
impl Send for DriftError
impl Sync for DriftError
impl Unpin for DriftError
impl UnwindSafe for DriftError
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