Enum ferru::Error [] [src]

pub enum Error {
    InvalidUtf8,
    IoError(Error),
    MissingFileName,
    MissingTemplateField,
    MustacheError(Error),
    ParserError(Error),
    StripPrefixError(StripPrefixError),
    TemplateNotFound,
}

An enum of all error kinds.

Variants

An error for when a type cannot be parsed to a string because it contains invalid UTF-8.

An IO error was encountered.

An error which occurs when a path which is expected to contain a file name as the final component instead terminates in ., .., or solely of a root of prefix.

An error for when the template field is expected but not specified in a document header.

Wraps errors emitted by methods during mustache templating.

Wraps errors emitted by methods when attempting to parse a document.

Wraps errors emitted by the Path::strip_prefix method.

An error which occurs when a specified template cannot be found.

Methods

impl Error
[src]

[src]

Create an error for when the parent of a path cannot be obtained (e.g. if the path terminates in a root or prefix).

[src]

Create an error for a non-directory path which was expected to be as directory.

[src]

Create an error for a path which unexpectedly points at a non-existing entity.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<StripPrefixError> for Error
[src]

[src]

Performs the conversion.

impl PartialEq<Error> for Error
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.