Struct crowbook::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
Crowbook Error type
Methods
impl Error
[src]
fn default<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new default error
fn grammar_check<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new grammar check error
Used when there is a problem connecting to languagetool
fn parser<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new parser error
Error when parsing markdown file
fn config_parser<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new config parser error
Error when parsing book file
fn file_not_found<S1: Into<Cow<'static, str>>, S2: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S1, file: S2) -> Error
Creates a new file not found error
- msg: description of why the file was needed
- file: file name
fn render<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new render error
Error when rendering
fn template<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new template error
Error when compiling a mustache template
fn invalid_option<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new invalid option error
Error when trying to set an option
fn zipper<S: Into<Cow<'static, str>>>(msg: S) -> Error
Creates a new zipper error
Error when moving/copying files to temporary dir, e.g. using zip
commmand
fn book_option<S: Into<Cow<'static, str>>, O: Into<Source>>(source: O, msg: S) -> Error
Creates a new book option error
Used when converting an error to invalid type
fn with_source<O: Into<Source>>(self, source: O) -> Error
Change the source of an error
fn is_default(&self) -> bool
Returns true if self is a default option error, false else
fn is_parser(&self) -> bool
Returns true if self is a parser error, false else
fn is_config_parser(&self) -> bool
Returns true if self is a config parser error, false else
fn is_file_not_found(&self) -> bool
Returns true if self is a file not found error, false else
fn is_render(&self) -> bool
Returns true if self is a render error, false else
fn is_zipper(&self) -> bool
Returns true if self is a zipper error, false else
fn is_book_option(&self) -> bool
Returns true if self is a book option error, false else
fn is_invalid_option(&self) -> bool
Returns true if self is an invalid option error, false else
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more