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)>
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<Error> for FactorioModApiError
impl From<Error> for FactorioModApiError
Source§impl From<Error> for FactorioModApiError
impl From<Error> for FactorioModApiError
Auto Trait Implementations§
impl Freeze for FactorioModApiError
impl !RefUnwindSafe for FactorioModApiError
impl Send for FactorioModApiError
impl Sync for FactorioModApiError
impl Unpin for FactorioModApiError
impl !UnwindSafe for FactorioModApiError
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