Enum aleph_alpha_client::Error
source · pub enum Error {
TooManyRequests,
Busy,
Http {
status: u16,
body: String,
},
Other(Error),
}
Expand description
Errors returned by the Aleph Alpha Client
Variants§
TooManyRequests
User exceeds his current Task Quota.
Busy
Model is busy. Most likely due to many other users requesting its services right now.
Http
An error on the Http Protocl level.
Other(Error)
Most likely either TLS errors creating the Client, or IO errors.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()