pub enum FactorioModApiError {
InvalidModDependency {
dep: String,
},
InvalidModVersion {
version: Version,
},
RequestError(Error),
VersionError(Error),
JsonParsingError(Error),
LoginError {
error: String,
message: String,
},
}
Expand description
Main error type used throughout factorio-mod-api
Variants§
InvalidModDependency
InvalidModVersion
RequestError(Error)
Error that is raised if a request to the mod portal failed.
VersionError(Error)
Error that is raised if parsing of a SemVer version number failed.
JsonParsingError(Error)
Error that is raised if deserialization from JSON failed.
LoginError
Trait Implementations§
source§impl Debug for FactorioModApiError
impl Debug for FactorioModApiError
source§impl Display for FactorioModApiError
impl Display for FactorioModApiError
source§impl Error for FactorioModApiError
impl Error for FactorioModApiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()