pub enum HlxError {
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,
},
}
Variants§
ConfigConversion
DatasetProcessing
QualityValidation
FormatConversion
UnsupportedAlgorithm
DatasetNotFound
HlxProcessing
ForgeIntegration
ConfigValidation
Implementations§
Source§impl HlxError
impl HlxError
Sourcepub fn config_conversion(
field: impl Into<String>,
details: impl Into<String>,
) -> Self
pub fn config_conversion( field: impl Into<String>, details: impl Into<String>, ) -> Self
Create a configuration conversion error with suggestion
Sourcepub fn dataset_processing(message: impl Into<String>) -> Self
pub fn dataset_processing(message: impl Into<String>) -> Self
Create a dataset processing error with suggestion
Sourcepub fn quality_validation(score: f64, issues: Vec<String>) -> Self
pub fn quality_validation(score: f64, issues: Vec<String>) -> Self
Create a quality validation error
Sourcepub fn format_conversion(from: impl Into<String>, to: impl Into<String>) -> Self
pub fn format_conversion(from: impl Into<String>, to: impl Into<String>) -> Self
Create a format conversion error
Sourcepub fn unsupported_algorithm(algorithm: impl Into<String>) -> Self
pub fn unsupported_algorithm(algorithm: impl Into<String>) -> Self
Create an unsupported algorithm error
Sourcepub fn dataset_not_found(path: PathBuf) -> Self
pub fn dataset_not_found(path: PathBuf) -> Self
Create a dataset not found error
Sourcepub fn suggestions(&self) -> Vec<String>
pub fn suggestions(&self) -> Vec<String>
Get recovery suggestions for this error
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if this error is recoverable
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> 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> 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.