pub enum NoteError {
Show 25 variants
CanNotExpandShorthandLink {
path: String,
},
SchemeNotFound {
scheme_val: String,
scheme_key: String,
schemes: String,
},
FrontMatterFieldIsInvalidSortTag {
sort_tag: String,
sort_tag_extra_chars: String,
filename_sort_tag_letters_in_succession_max: u8,
},
FrontMatterFieldIsDuplicateSortTag {
sort_tag: String,
existing_file: String,
},
FrontMatterFieldIsCompound {
field_name: String,
},
FrontMatterFieldIsEmptyString {
field_name: String,
},
FrontMatterFieldIsNotBool {
field_name: String,
},
FrontMatterFieldIsNotNumber {
field_name: String,
},
FrontMatterFieldIsNotString {
field_name: String,
},
FrontMatterFieldIsNotTpnoteExtension {
extension: String,
extensions: String,
},
FrontMatterFieldMissing {
field_name: String,
},
FrontMatterMissing {
compulsory_field: String,
},
InvalidFrontMatterYaml {
front_matter: String,
source_error: Error,
},
InvalidInputYaml {
tmpl_var: String,
source_str: String,
},
InvalidHtml {
source_str: String,
},
HtmlToMarkupDisabled,
InvalidLocalPath {
path: String,
},
Read {
path: PathBuf,
source: Error,
},
RstParse {
msg: String,
},
Tera {
source: Error,
},
TeraTemplate {
source_str: String,
template_str: String,
},
File(FileError),
Io(Error),
ParseLanguageCode(LibCfgError),
Utf8Conversion {
source: Utf8Error,
},
}
Expand description
Error type returned form methods in or related to the note
module.
Variants§
CanNotExpandShorthandLink
Remedy: make sure, that a file starting with path
exists.
SchemeNotFound
Remedy: Choose another scheme.
FrontMatterFieldIsInvalidSortTag
Remedy: remove invalid characters.
Fields
FrontMatterFieldIsDuplicateSortTag
Remedy: choose another sort-tag.
FrontMatterFieldIsCompound
Remedy: index the compound type?
FrontMatterFieldIsEmptyString
Remedy: try to enclose with quotes.
FrontMatterFieldIsNotBool
Remedy: try to remove possible quotes.
FrontMatterFieldIsNotNumber
Remedy: try to remove possible quotes.
FrontMatterFieldIsNotString
Remedy: try to enclose with quotes.
FrontMatterFieldIsNotTpnoteExtension
Remedy: correct the front matter variable file_ext
.
FrontMatterFieldMissing
Remedy: add the missing field in the note’s front matter.
FrontMatterMissing
Remedy: check front matter delimiters ----
.
InvalidFrontMatterYaml
Remedy: check YAML syntax in the note’s front matter.
InvalidInputYaml
Remedy: check YAML syntax in the input stream’s front matter.
InvalidHtml
Remedy: check HTML syntax in the input stream data.
HtmlToMarkupDisabled
Remedy: reconfigure scheme.filename.extensions.1
.
InvalidLocalPath
Remedy: correct link path.
Read
Remedy: check the file permission of the note file.
RstParse
Remedy: check ReStructuredText syntax.
Tera
Remedy: restart with --debug trace
.
TeraTemplate
Remedy: check the syntax of the Tera template in the configuration file.
File(FileError)
Io(Error)
ParseLanguageCode(LibCfgError)
Utf8Conversion
Trait Implementations§
Source§impl Error for NoteError
impl Error for NoteError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<LibCfgError> for NoteError
impl From<LibCfgError> for NoteError
Source§fn from(source: LibCfgError) -> Self
fn from(source: LibCfgError) -> Self
Auto Trait Implementations§
impl Freeze for NoteError
impl !RefUnwindSafe for NoteError
impl Send for NoteError
impl Sync for NoteError
impl Unpin for NoteError
impl !UnwindSafe for NoteError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString
. Read more