[−][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
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.
Attempted to write a scenario with disabled technologies, to a version that doesn't support disabling technologies.
Attempted to write a scenario with disabled units, to a version that doesn't support disabling units.
Attempted to write a scenario with disabled buildings, to a version that doesn't support this many disabled buildings.
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.
ParseAIErrorCodeError(TryFromPrimitiveError<AIErrorCode>)
The given ID is not a known error code.
IoError(Error)
An error occurred while reading or writing.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<DecodeStringError> for Error
[src]
fn from(source: DecodeStringError) -> Self
[src]
impl From<EncodeStringError> for Error
[src]
fn from(source: EncodeStringError) -> Self
[src]
impl From<Error> for Error
[src]
impl From<ParseDLCPackageError> for Error
[src]
fn from(source: ParseDLCPackageError) -> Self
[src]
impl From<ParseDataSetError> for Error
[src]
fn from(source: ParseDataSetError) -> Self
[src]
impl From<ParseDiplomaticStanceError> for Error
[src]
fn from(source: ParseDiplomaticStanceError) -> Self
[src]
impl From<ParseStartingAgeError> for Error
[src]
fn from(source: ParseStartingAgeError) -> Self
[src]
impl From<ReadStringError> for Error
[src]
fn from(err: ReadStringError) -> Error
[src]
impl From<TryFromPrimitiveError<AIErrorCode>> for Error
[src]
fn from(source: TryFromPrimitiveError<AIErrorCode>) -> Self
[src]
impl From<WriteStringError> for Error
[src]
fn from(err: WriteStringError) -> Error
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,