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,
},
ParseLocalLinkKind,
ParseLanguageCode {
language_code: String,
all_langs: String,
},
NotEnoughLanguageCodes {
language_code: 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.
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
.
Trait Implementations§
source§impl Clone for LibCfgError
impl Clone for LibCfgError
source§fn clone(&self) -> LibCfgError
fn clone(&self) -> LibCfgError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<LibCfgError> for NoteError
impl From<LibCfgError> for NoteError
source§fn from(source: LibCfgError) -> Self
fn from(source: LibCfgError) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more
§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)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
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
Converts the given value to a [
CompactString
]. Read more