Struct crowbook::Error [] [src]

pub struct Error { /* fields omitted */ }

Crowbook Error type.

This type tries (when it can) to track where the error came from, to pinpoint the file (at least) and, if possible, the line the user needs to look at.

Methods

impl Error
[src]

Creates a new default error.

Creates a new grammar check error.

Used when there is a problem connecting to languagetool

Creates a new parser error.

Error when parsing markdown file.

Creates a new config parser error.

Error when parsing the book configuration file.

Creates a new "file not found" error

Arguments

  • source: the source of the error.
  • msg: description of why the file was needed.
  • file: file name that wasn't found.

Creates a new render error.

Error when rendering the book to a given format.

Creates a new template error.

Error when compiling a mustache template.

Creates a new invalid option error.

Error when trying to set an option.

Creates a new zipper error.

Error when moving/copying files to temporary dir, e.g. using zip commmand.

Creates a new book option error

Used when converting an error to invalid type.

Change the source of an error.

Returns true if self is a default option error, false else.

Returns true if self is a parser error, false else.

Returns true if self is a config parser error, false else.

Returns true if self is a file not found error, false else.

Returns true if self is a render error, false else.

Returns true if self is a zipper error, false else.

Returns true if self is a book option error, false else.

Returns true if self is an invalid option error, false else.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

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

This method tests for !=.

impl Error for Error
[src]

A short description of the error. Read more

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

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Implement our Error from mustache::Error

Performs the conversion.

impl From<Error> for Error
[src]

Implement our error from epub_maker::Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.