pub enum RenderError {
Show 17 variants
EngineCreation {
diag: Box<Diagnostic>,
},
InvalidFrontmatter {
diag: Box<Diagnostic>,
},
TemplateFailed {
diag: Box<Diagnostic>,
},
CompilationFailed {
diags: Vec<Diagnostic>,
},
FormatNotSupported {
diag: Box<Diagnostic>,
},
UnsupportedBackend {
diag: Box<Diagnostic>,
},
DynamicAssetCollision {
diag: Box<Diagnostic>,
},
DynamicFontCollision {
diag: Box<Diagnostic>,
},
InputTooLarge {
diag: Box<Diagnostic>,
},
YamlTooLarge {
diag: Box<Diagnostic>,
},
NestingTooDeep {
diag: Box<Diagnostic>,
},
ValidationFailed {
diag: Box<Diagnostic>,
},
InvalidSchema {
diag: Box<Diagnostic>,
},
QuillConfig {
diag: Box<Diagnostic>,
},
VersionNotFound {
diag: Box<Diagnostic>,
},
QuillNotFound {
diag: Box<Diagnostic>,
},
InvalidVersion {
diag: Box<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
TemplateFailed
Template rendering failed
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
DynamicAssetCollision
Dynamic asset filename collision
Fields
diag: Box<Diagnostic>Diagnostic information
DynamicFontCollision
Dynamic font filename collision
Fields
diag: Box<Diagnostic>Diagnostic information
InputTooLarge
Input size limits exceeded
Fields
diag: Box<Diagnostic>Diagnostic information
YamlTooLarge
YAML size exceeded maximum allowed
Fields
diag: Box<Diagnostic>Diagnostic information
NestingTooDeep
Nesting depth exceeded maximum allowed
Fields
diag: Box<Diagnostic>Diagnostic information
ValidationFailed
Validation failed for parsed document
Fields
diag: Box<Diagnostic>Diagnostic information
InvalidSchema
Invalid schema definition
Fields
diag: Box<Diagnostic>Diagnostic information
QuillConfig
Quill configuration error
Fields
diag: Box<Diagnostic>Diagnostic information
VersionNotFound
Version not found
Fields
diag: Box<Diagnostic>Diagnostic information
QuillNotFound
Quill not found (name doesn’t exist)
Fields
diag: Box<Diagnostic>Diagnostic information
InvalidVersion
Invalid version format
Fields
diag: Box<Diagnostic>Diagnostic information
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
Source§impl From<ParseError> for RenderError
Convert ParseError to RenderError
impl From<ParseError> for RenderError
Convert ParseError to RenderError