pub enum MarkdownError {
ParseError(String),
ConversionError(String),
CustomBlockError(String),
SyntaxHighlightError(String),
InvalidOptionsError(String),
SyntaxSetError(String),
InputTooLarge {
size: usize,
limit: usize,
},
RenderError(String),
IoError(Error),
}Expand description
Represents all the errors that can occur during Markdown processing.
Variants§
ParseError(String)
An error occurred while parsing the Markdown content.
ConversionError(String)
An error occurred while converting Markdown to HTML.
CustomBlockError(String)
An error occurred while processing a custom block.
SyntaxHighlightError(String)
An error occurred while applying syntax highlighting.
InvalidOptionsError(String)
An error occurred due to invalid options.
SyntaxSetError(String)
An error occurred while loading a syntax set.
InputTooLarge
The input exceeds the configured maximum size.
RenderError(String)
An error occurred while rendering HTML.
IoError(Error)
An error occurred while writing output to a Write sink.
Trait Implementations§
Source§impl Debug for MarkdownError
impl Debug for MarkdownError
Source§impl Display for MarkdownError
impl Display for MarkdownError
Source§impl Error for MarkdownError
impl Error for MarkdownError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for MarkdownError
impl From<Error> for MarkdownError
Source§impl From<ValidationError> for MarkdownError
Map a single ValidationError into a domain
MarkdownError::InvalidOptionsError.
impl From<ValidationError> for MarkdownError
Map a single ValidationError into a domain
MarkdownError::InvalidOptionsError.
Source§fn from(err: ValidationError) -> Self
fn from(err: ValidationError) -> Self
Source§impl From<Vec<(String, ValidationError)>> for MarkdownError
Map the multi-error form produced by
Validator::finish into a
domain MarkdownError::InvalidOptionsError. Every failing check
is joined into a single human-readable message with the field name
preserved.
impl From<Vec<(String, ValidationError)>> for MarkdownError
Map the multi-error form produced by
Validator::finish into a
domain MarkdownError::InvalidOptionsError. Every failing check
is joined into a single human-readable message with the field name
preserved.
This is what
MarkdownOptions::validate
returns; the pipeline converts via ?.