pub enum ParsingError {
SectionError(SectionError),
StructureError(SaveObjectError),
ReaderError(String),
JominiError(Error),
DateError(DateError),
}
Expand description
An error that occurred somewhere within the broadly defined parsing process.
Variants§
SectionError(SectionError)
An error that occurred while parsing a section.
StructureError(SaveObjectError)
An error that occurred while processing SaveFileValue objects.
ReaderError(String)
An error that occurred while creating Section objects.
JominiError(Error)
An error that occurred during low level tape processing
DateError(DateError)
Trait Implementations§
Source§impl Debug for ParsingError
impl Debug for ParsingError
Source§impl<'a> Display for ParsingError
impl<'a> Display for ParsingError
Source§impl<'a> Error for ParsingError
impl<'a> Error for ParsingError
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<ConversionError> for ParsingError
impl From<ConversionError> for ParsingError
Source§fn from(value: ConversionError) -> Self
fn from(value: ConversionError) -> Self
Converts to this type from the input type.
Source§impl From<DateError> for ParsingError
impl From<DateError> for ParsingError
Source§impl From<Error> for ParsingError
impl From<Error> for ParsingError
Source§impl From<KeyError> for ParsingError
impl From<KeyError> for ParsingError
Source§impl From<ParseIntError> for ParsingError
impl From<ParseIntError> for ParsingError
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ParsingError> for GameDataError
impl From<ParsingError> for GameDataError
Source§fn from(value: ParsingError) -> Self
fn from(value: ParsingError) -> Self
Converts to this type from the input type.
Source§impl From<SaveObjectError> for ParsingError
impl From<SaveObjectError> for ParsingError
Source§fn from(value: SaveObjectError) -> Self
fn from(value: SaveObjectError) -> Self
Converts to this type from the input type.
Source§impl From<SectionError> for ParsingError
impl From<SectionError> for ParsingError
Source§fn from(value: SectionError) -> Self
fn from(value: SectionError) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<SectionReaderError<'b>> for ParsingError
impl<'a, 'b: 'a> From<SectionReaderError<'b>> for ParsingError
Source§fn from(value: SectionReaderError<'b>) -> Self
fn from(value: SectionReaderError<'b>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParsingError
impl !RefUnwindSafe for ParsingError
impl !Send for ParsingError
impl !Sync for ParsingError
impl Unpin for ParsingError
impl !UnwindSafe for ParsingError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more