Struct crowbook::Error [] [src]

pub struct Error { /* fields omitted */ }

Crowbook Error type

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 book file

Creates a new file not found error

  • msg: description of why the file was needed
  • file: file name

Creates a new render error

Error when rendering

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.