[−][src]Enum genie_scx::Error
Error type for SCX methods, containing all types of errors that may occur while reading or writing scenario files.
Variants
MissingFileNameError
The scenario that's attempted to be read does not contain a file name.
UnsupportedFormatVersionError(SCXVersion)
Attempted to read a scenario with an unsupported format version identifier.
TooManyDisabledTechsError(i32)
Attempted to write a scenario with disabled technologies, to a version that doesn't support this many disabled technologies.
CannotDisableTechsError
Attempted to write a scenario with disabled technologies, to a version that doesn't support disabling technologies.
CannotDisableUnitsError
Attempted to write a scenario with disabled units, to a version that doesn't support disabling units.
TooManyDisabledBuildingsError(i32, i32)
Attempted to write a scenario with disabled buildings, to a version that doesn't support this many disabled buildings.
CannotDisableBuildingsError
Attempted to write a scenario with disabled buildings, to a version that doesn't support disabling buildings.
DecodeStringError(DecodeStringError)
Failed to decode a string from the scenario file, probably because of a wrong encoding.
EncodeStringError(EncodeStringError)
Failed to encode a string into the scenario file, probably because of a wrong encoding.
ParseDiplomaticStanceError(ParseDiplomaticStanceError)
The given ID is not a known diplomatic stance.
ParseDataSetError(ParseDataSetError)
The given ID is not a known data set.
ParseDLCPackageError(ParseDLCPackageError)
The given ID is not a known HD Edition DLC.
ParseStartingAgeError(ParseStartingAgeError)
The given ID is not a known starting age in AoE1 or AoE2.
IoError(Error)
An error occurred while reading or writing.
Trait Implementations
impl From<Error> for Error
[src]
impl From<ParseDiplomaticStanceError> for Error
[src]
fn from(err: ParseDiplomaticStanceError) -> Error
[src]
impl From<ParseDataSetError> for Error
[src]
fn from(err: ParseDataSetError) -> Error
[src]
impl From<ParseDLCPackageError> for Error
[src]
fn from(err: ParseDLCPackageError) -> Error
[src]
impl From<ParseStartingAgeError> for Error
[src]
fn from(err: ParseStartingAgeError) -> Error
[src]
impl Display for Error
[src]
impl Debug for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
1.0.0[src]
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl Sync for Error
impl Send for Error
impl Unpin for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,