Enum tpnote_lib::error::LibCfgError
source · pub enum LibCfgError {
SortTagExtraSeparator {
dot_file_marker: char,
chars: String,
extra_separator: String,
},
SortTagSeparator {
dot_file_marker: char,
chars: String,
separator: String,
},
CopyCounterExtraSeparator {
chars: String,
extra_separator: String,
},
ParseAssertPrecondition,
ParseLocalLinkKind,
ParseLanguageCode {
language_code: String,
all_langs: String,
},
NotEnoughLanguageCodes {
language_code: String,
},
ThemeName {
var: String,
value: String,
available: String,
},
}Expand description
Configuration file related semantic errors.
Variants§
SortTagExtraSeparator
Remedy: Choose another sort_tag_extra_separator character.
SortTagSeparator
Remedy: Insert sort_tag_separator in sort_tag_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.
ThemeName
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 Ewhere
E: Error + Send + Sync + 'static,
impl<E> Fail for Ewhere E: Error + Send + Sync + 'static,
§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