Enum tpnote_lib::error::LibCfgError
source · pub enum LibCfgError {
SchemeNotFound {
scheme_name: String,
schemes: String,
},
SortTagExtraSeparator {
scheme_name: String,
dot_file_marker: char,
sort_tag_extra_chars: String,
extra_separator: String,
},
ExtensionDefault {
scheme_name: String,
extension_default: String,
extensions: String,
},
SortTagSeparator {
scheme_name: String,
dot_file_marker: char,
chars: String,
separator: String,
},
CopyCounterExtraSeparator {
scheme_name: String,
chars: String,
extra_separator: String,
},
ParseAssertPrecondition,
ParseLocalLinkKind,
ParseLanguageCode {
language_code: String,
all_langs: String,
},
NotEnoughLanguageCodes {
language_code: String,
},
HighlightingThemeName {
var: String,
value: String,
available: String,
},
}Expand description
Configuration file related semantic errors.
Variants§
SchemeNotFound
Remedy: Choose another scheme.
SortTagExtraSeparator
Fields
Remedy: Choose another sort_tag.extra_separator character.
ExtensionDefault
Remedy: Choose another extension_default out of
extensions[..].0.
SortTagSeparator
Remedy: Insert sort_tag.separator in sort_tag.extra_chars.
CopyCounterExtraSeparator
Remedy: Choose a copy_counter.extra_separator in the set.
ParseAssertPrecondition
Remedy: check the configuration file variable tmpl.filter.assert_preconditions.
ParseLocalLinkKind
Remedy: check the configuration file variable arg_default.export_link_rewriting.
ParseLanguageCode
Remedy: check the ISO 639-1 codes in the configuration variable
tmpl.filter.get_lang and make sure that they are supported, by
checking tpnote -V.
NotEnoughLanguageCodes
Remedy: add one more ISO 639-1 code in the configuration variable
tmpl.filter.get_lang (or in TPNOTE_LANG_DETECTION) and make
sure that the code is supported, by checking tpnote -V.
HighlightingThemeName
Remedy: correct the variable by choosing one the available themes.
Trait Implementations§
source§impl Clone for LibCfgError
impl Clone for LibCfgError
source§fn clone(&self) -> LibCfgError
fn clone(&self) -> LibCfgError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LibCfgError
impl Debug for LibCfgError
source§impl Display for LibCfgError
impl Display for LibCfgError
source§impl Error for LibCfgError
impl Error for LibCfgError
1.30.0 · 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 RefUnwindSafe for LibCfgError
impl Send for LibCfgError
impl Sync for LibCfgError
impl Unpin for LibCfgError
impl UnwindSafe for LibCfgError
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
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
§impl<E> Fail for E
impl<E> Fail for E
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Backtrace carried by this failure, if it
carries one. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more