Enum mdblog::Error[][src]

pub enum Error {
Show 18 variants Io(Error), PathStripPrefix(StripPrefixError), ConfigMerge(ConfigError), Template(Error), Notify(Error), GlobPattern(PatternError), TomlExport(Error), PathExpend(LookupError<VarError>), PostHeadPaser(ErrorPathBuf), 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

Tuple Fields of Io

0: Error
PathStripPrefix(StripPrefixError)

path strip prefix error

Tuple Fields of PathStripPrefix

0: StripPrefixError
ConfigMerge(ConfigError)

config merge error

Tuple Fields of ConfigMerge

0: ConfigError
Template(Error)

template error

Tuple Fields of Template

0: Error
Notify(Error)

notify error

Tuple Fields of Notify

0: Error
GlobPattern(PatternError)

glob pattern error

Tuple Fields of GlobPattern

0: PatternError
TomlExport(Error)

toml export error

Tuple Fields of TomlExport

0: Error
PathExpend(LookupError<VarError>)

path expand error

Tuple Fields of PathExpend

0: LookupError<VarError>
PostHeadPaser(ErrorPathBuf)

post head parse error

Tuple Fields of PostHeadPaser

0: Error1: PathBuf
RootDirExisted(PathBuf)

blog root directory already exists error

Tuple Fields of RootDirExisted

0: PathBuf
PostPathInvaild(PathBuf)

post path format error

Tuple Fields of PostPathInvaild

0: PathBuf
PostPathExisted(PathBuf)

post path already existed

Tuple Fields of PostPathExisted

0: PathBuf
ThemeFileEncoding(String)

theme template file encoding error

Tuple Fields of ThemeFileEncoding

0: String
ThemeInUse(String)

blog theme in use, can not be deleted error

Tuple Fields of ThemeInUse

0: String
ThemeNotFound(String)

blog theme not found error

Tuple Fields of ThemeNotFound

0: String
PostOnlyOnePart(PathBuf)

post must has two parts error

Tuple Fields of PostOnlyOnePart

0: PathBuf
PostNoHead(PathBuf)

post head part is empty error

Tuple Fields of PostNoHead

0: PathBuf
PostNoBody(PathBuf)

post body part is empty error

Tuple Fields of PostNoBody

0: PathBuf

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts self into a collection.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.