pub enum HlxError {
Show 25 variants
ConfigConversion {
field: String,
details: String,
suggestion: String,
},
DatasetProcessing {
message: String,
suggestion: String,
},
QualityValidation {
score: f64,
issues: Vec<String>,
suggestions: Vec<String>,
},
FormatConversion {
from: String,
to: String,
suggestion: String,
},
UnsupportedAlgorithm {
algorithm: String,
supported: Vec<String>,
},
DatasetNotFound {
path: PathBuf,
suggestion: String,
},
HlxProcessing {
message: String,
suggestion: String,
},
ForgeIntegration {
message: String,
suggestion: String,
},
ConfigValidation {
field: String,
value: String,
suggestion: String,
},
InvalidInput {
message: String,
suggestion: String,
},
ExecutionError {
message: String,
suggestion: String,
},
InvalidParameters {
message: String,
suggestion: String,
},
UnknownOperator {
message: String,
suggestion: String,
},
ValidationError {
message: String,
suggestion: String,
},
HashError {
message: String,
suggestion: String,
},
JsonError {
message: String,
suggestion: String,
},
Base64Error {
message: String,
suggestion: String,
},
Unknown {
message: String,
suggestion: String,
},
Compilation {
message: String,
suggestion: String,
},
Io {
message: String,
suggestion: String,
},
SerializationError {
message: String,
suggestion: String,
},
DeserializationError {
message: String,
suggestion: String,
},
CompressionError {
message: String,
suggestion: String,
},
DecompressionError {
message: String,
suggestion: String,
},
FeatureError {
feature: String,
message: String,
},
}Variants§
ConfigConversion
DatasetProcessing
QualityValidation
FormatConversion
UnsupportedAlgorithm
DatasetNotFound
HlxProcessing
ForgeIntegration
ConfigValidation
InvalidInput
ExecutionError
InvalidParameters
UnknownOperator
ValidationError
HashError
JsonError
Base64Error
Unknown
Compilation
Io
SerializationError
DeserializationError
CompressionError
DecompressionError
FeatureError
Implementations§
Source§impl HlxError
impl HlxError
pub fn config_conversion( field: impl Into<String>, details: impl Into<String>, ) -> Self
pub fn dataset_processing(message: impl Into<String>) -> Self
pub fn quality_validation(score: f64, issues: Vec<String>) -> Self
pub fn format_conversion(from: impl Into<String>, to: impl Into<String>) -> Self
pub fn unsupported_algorithm(algorithm: impl Into<String>) -> Self
pub fn dataset_not_found(path: PathBuf) -> Self
pub fn execution_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn invalid_input( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn invalid_parameters(operator: &str, params: &str) -> Self
pub fn unknown_operator(operator: impl Into<String>) -> Self
pub fn validation_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn hash_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn json_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn base64_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn unknown_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn compilation_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn io_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn serialization_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn deserialization_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn compression_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn decompression_error( message: impl Into<String>, suggestion: impl Into<String>, ) -> Self
pub fn feature_error( feature: impl Into<String>, message: impl Into<String>, ) -> Self
pub fn suggestions(&self) -> Vec<String>
pub fn is_recoverable(&self) -> bool
Trait Implementations§
Source§impl Error for HlxError
impl Error for HlxError
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()
Auto Trait Implementations§
impl Freeze for HlxError
impl RefUnwindSafe for HlxError
impl Send for HlxError
impl Sync for HlxError
impl Unpin for HlxError
impl UnwindSafe for HlxError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.