pub enum EvtcError {
ParseError(ParseError),
InvalidData,
InvalidProfession(u32),
InvalidEliteSpec(u32),
Utf8Error(Utf8Error),
}
Expand description
Any error that can occur during the processing of evtc files.
Variants
ParseError(ParseError)
Error for underlying parser errors.
This should never be returned from process
, only from
process_stream
and process_file
.
InvalidData
Generic error for invalid data in the evtc file.
InvalidProfession(u32)
The profession id is not known.
The field contains the unknown profession id.
InvalidEliteSpec(u32)
The elite specialization id is not known.
The field contains the unknown elite specialization id.
Utf8Error(Utf8Error)
The file contains invalid utf-8.
Trait Implementations
sourceimpl Error for EvtcError
impl Error for EvtcError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ParseError> for EvtcError
impl From<ParseError> for EvtcError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for EvtcError
impl Send for EvtcError
impl Sync for EvtcError
impl Unpin for EvtcError
impl !UnwindSafe for EvtcError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more