pub enum RenderError {
EngineCreation {
diag: Box<Diagnostic>,
},
InvalidFrontmatter {
diag: Box<Diagnostic>,
},
CompilationFailed {
diags: Vec<Diagnostic>,
},
FormatNotSupported {
diag: Box<Diagnostic>,
},
UnsupportedBackend {
diag: Box<Diagnostic>,
},
ValidationFailed {
diags: Vec<Diagnostic>,
},
QuillConfig {
diags: Vec<Diagnostic>,
},
}Expand description
Main error type for rendering operations.
Variants§
EngineCreation
Failed to create rendering engine
Fields
diag: Box<Diagnostic>Diagnostic information
InvalidFrontmatter
Invalid YAML frontmatter in markdown document
Fields
diag: Box<Diagnostic>Diagnostic information
CompilationFailed
Backend compilation failed with one or more errors
Fields
diags: Vec<Diagnostic>List of diagnostics
FormatNotSupported
Requested output format not supported by backend
Fields
diag: Box<Diagnostic>Diagnostic information
UnsupportedBackend
Backend not registered with engine
Fields
diag: Box<Diagnostic>Diagnostic information
ValidationFailed
Validation failed for parsed document — may carry multiple diagnostics
when several problems are detected during a single validation pass
(e.g. multiple missing required fields). Each diagnostic should set
path to anchor the error at a specific location in the document model.
Fields
diags: Vec<Diagnostic>All validation diagnostics. Always non-empty.
QuillConfig
Quill configuration error — may carry multiple diagnostics when several problems are detected during parsing (e.g. several unknown keys at once).
Fields
diags: Vec<Diagnostic>All configuration diagnostics. Always non-empty.
Implementations§
Source§impl RenderError
impl RenderError
Sourcepub fn diagnostics(&self) -> Vec<&Diagnostic>
pub fn diagnostics(&self) -> Vec<&Diagnostic>
Extract all diagnostics from this error
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
1.30.0 · 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<ParseError> for RenderError
Convert ParseError to RenderError
impl From<ParseError> for RenderError
Convert ParseError to RenderError