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§
Source§impl Error for EvtcError
impl Error for EvtcError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ParseError> for EvtcError
impl From<ParseError> for EvtcError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EvtcError
impl !RefUnwindSafe for EvtcError
impl Send for EvtcError
impl Sync for EvtcError
impl Unpin for EvtcError
impl !UnwindSafe for EvtcError
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
Mutably borrows from an owned value. Read more