pub enum HtmlGenerationError {
FileDiscoveryError {
directory: String,
base_name: String,
source: Box<dyn Error + Send + Sync>,
recovery_suggestions: Vec<String>,
},
FileLoadingError {
file_path: PathBuf,
file_type: String,
file_size: usize,
source: Box<dyn Error + Send + Sync>,
recoverable: bool,
recovery_suggestions: Vec<String>,
},
JsonParsingError {
file_path: PathBuf,
line_number: Option<usize>,
column_number: Option<usize>,
parsing_error: String,
content_snippet: Option<String>,
recovery_suggestions: Vec<String>,
},
ValidationError {
file_path: PathBuf,
validation_type: String,
validation_error: String,
expected_structure: String,
actual_structure: String,
recovery_suggestions: Vec<String>,
},
NormalizationError {
stage: String,
processed_count: usize,
total_count: usize,
source: Box<dyn Error + Send + Sync>,
partial_data_available: bool,
recovery_suggestions: Vec<String>,
},
TemplateError {
stage: String,
processed_size: usize,
source: Box<dyn Error + Send + Sync>,
recovery_suggestions: Vec<String>,
},
MemoryLimitError {
current_usage: usize,
memory_limit: usize,
operation: String,
recovery_suggestions: Vec<String>,
},
MultipleErrors {
errors: Vec<HtmlGenerationError>,
can_continue: bool,
recovery_suggestions: Vec<String>,
},
}
Expand description
Comprehensive error types for HTML generation
Variants§
FileDiscoveryError
JSON file discovery failed
Fields
FileLoadingError
JSON file loading failed
Fields
JsonParsingError
JSON parsing failed
Fields
ValidationError
Data validation failed
Fields
NormalizationError
Data normalization failed
Fields
TemplateError
Template generation failed
Fields
MemoryLimitError
Memory limit exceeded
Fields
MultipleErrors
Multiple errors occurred
Trait Implementations§
Source§impl Debug for HtmlGenerationError
impl Debug for HtmlGenerationError
Source§impl Display for HtmlGenerationError
impl Display for HtmlGenerationError
Source§impl Error for HtmlGenerationError
impl Error for HtmlGenerationError
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 HtmlGenerationError
impl !RefUnwindSafe for HtmlGenerationError
impl Send for HtmlGenerationError
impl Sync for HtmlGenerationError
impl Unpin for HtmlGenerationError
impl !UnwindSafe for HtmlGenerationError
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> 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