pub enum GeneratorError {
TemplateError(Error),
IoError(Error),
ConflictError(Vec<PathBuf>),
TemplateDirectoryError(String),
PathError(String),
}Expand description
Errors that can occur during template generation
Variants§
TemplateError(Error)
Error parsing or rendering a Liquid template
IoError(Error)
IO error when reading or writing files
ConflictError(Vec<PathBuf>)
File conflicts detected when overwrite is disabled
TemplateDirectoryError(String)
Template directory does not exist or is not a directory
PathError(String)
Failed to determine relative path for template
Trait Implementations§
Source§impl Debug for GeneratorError
impl Debug for GeneratorError
Source§impl Display for GeneratorError
impl Display for GeneratorError
Source§impl Error for GeneratorError
impl Error for GeneratorError
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()
Source§impl From<Error> for GeneratorError
impl From<Error> for GeneratorError
Source§impl From<Error> for GeneratorError
impl From<Error> for GeneratorError
Source§impl From<GeneratorError> for ApplyError
impl From<GeneratorError> for ApplyError
Source§fn from(source: GeneratorError) -> Self
fn from(source: GeneratorError) -> Self
Converts to this type from the input type.
Source§impl From<GeneratorError> for UpgradeError
impl From<GeneratorError> for UpgradeError
Source§fn from(source: GeneratorError) -> Self
fn from(source: GeneratorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GeneratorError
impl !RefUnwindSafe for GeneratorError
impl Send for GeneratorError
impl Sync for GeneratorError
impl Unpin for GeneratorError
impl UnsafeUnpin for GeneratorError
impl !UnwindSafe for GeneratorError
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> 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