pub enum TemplatingEngineLoaderError {
ConfigurationError(HumusConfigError),
TemplatesManifestError(HumusConfigError),
TemplatesManifestProblems(Vec<TemplatesManifestProblem>),
TemplateDirectoryNotFound {
path: PathBuf,
},
TemplateDirectoryIoError {
path: PathBuf,
error: Error,
},
TemplateParseError {
path: PathBuf,
format: HumusFormatIdentifier,
tera_error: Error,
},
}Expand description
Returned when a TemplatingEngine fails to initalize.
Variants§
ConfigurationError(HumusConfigError)
An error occourred while loading the template configuration file.
TemplatesManifestError(HumusConfigError)
An error occurred while loading the template manifest file.
TemplatesManifestProblems(Vec<TemplatesManifestProblem>)
One or more problems were found in the templates manifest file.
TemplateDirectoryNotFound
No template directory at.
TemplateDirectoryIoError
There was an error reading the template directory
TemplateParseError
An error occourred while parsing the templates.
Trait Implementations§
Source§impl Debug for TemplatingEngineLoaderError
impl Debug for TemplatingEngineLoaderError
Source§impl Error for TemplatingEngineLoaderError
impl Error for TemplatingEngineLoaderError
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 !RefUnwindSafe for TemplatingEngineLoaderError
impl !UnwindSafe for TemplatingEngineLoaderError
impl Freeze for TemplatingEngineLoaderError
impl Send for TemplatingEngineLoaderError
impl Sync for TemplatingEngineLoaderError
impl Unpin for TemplatingEngineLoaderError
impl UnsafeUnpin for TemplatingEngineLoaderError
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