pub enum Error {
Show 20 variants
Io(Error),
PathStripPrefix(StripPrefixError),
ConfigMerge(ConfigError),
Template(Error),
DateTimeFetchError(IndeterminateOffset),
DateTimeFormat(Format),
Notify(Error),
GlobPattern(PatternError),
TomlExport(Error),
PathExpend(LookupError<VarError>),
PostHeadPaser(Error, PathBuf),
RootDirExisted(PathBuf),
PostPathInvaild(PathBuf),
PostPathExisted(PathBuf),
ThemeFileEncoding(String),
ThemeInUse(String),
ThemeNotFound(String),
PostOnlyOnePart(PathBuf),
PostNoHead(PathBuf),
PostNoBody(PathBuf),
}
Expand description
The Error type
Variants§
Io(Error)
IO error
PathStripPrefix(StripPrefixError)
path strip prefix error
ConfigMerge(ConfigError)
config merge error
Template(Error)
template error
DateTimeFetchError(IndeterminateOffset)
datetime fetch error
DateTimeFormat(Format)
datetime format error
Notify(Error)
notify error
GlobPattern(PatternError)
glob pattern error
TomlExport(Error)
toml export error
PathExpend(LookupError<VarError>)
path expand error
PostHeadPaser(Error, PathBuf)
post head parse error
RootDirExisted(PathBuf)
blog root directory already exists error
PostPathInvaild(PathBuf)
post path format error
PostPathExisted(PathBuf)
post path already existed
ThemeFileEncoding(String)
theme template file encoding error
ThemeInUse(String)
blog theme in use, can not be deleted error
ThemeNotFound(String)
blog theme not found error
PostOnlyOnePart(PathBuf)
post must has two parts error
PostNoHead(PathBuf)
post head part is empty error
PostNoBody(PathBuf)
post body part is empty error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(original: ConfigError) -> Error
fn from(original: ConfigError) -> Error
Converts to this type from the input type.
Source§impl From<IndeterminateOffset> for Error
impl From<IndeterminateOffset> for Error
Source§fn from(original: IndeterminateOffset) -> Error
fn from(original: IndeterminateOffset) -> Error
Converts to this type from the input type.
Source§impl From<PatternError> for Error
impl From<PatternError> for Error
Source§fn from(original: PatternError) -> Error
fn from(original: PatternError) -> Error
Converts to this type from the input type.
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(original: StripPrefixError) -> Error
fn from(original: StripPrefixError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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