#[non_exhaustive]pub enum TesseraError {
Configuration(String),
InvalidArgument(String),
Network(String),
UnexpectedResponse(String),
PresignExpired,
BadRequest {
code: Option<String>,
message: String,
},
Authentication {
code: Option<String>,
message: String,
},
Forbidden {
code: Option<String>,
message: String,
},
NotFound {
code: Option<String>,
message: String,
},
ServiceUnavailable {
code: Option<String>,
message: String,
},
InternalServer {
code: Option<String>,
message: String,
},
Api {
status_code: u16,
code: Option<String>,
message: String,
},
}Expand description
Every error raised by this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Configuration(String)
The client was misconfigured — e.g. no API key could be resolved.
InvalidArgument(String)
A request argument was invalid (month format, empty coin/month, reversed span).
Network(String)
A network-level failure (connection/timeout) after exhausting retries.
UnexpectedResponse(String)
The API answered successfully but with a body the client cannot use — e.g. a day-backed partition download with no day objects.
PresignExpired
A presigned download URL expired before the read completed.
BadRequest
400 — the request was malformed (bad coin, month format, etc.).
Fields
Authentication
401 — the API key is missing, invalid, or revoked.
Fields
Forbidden
403 — your account is not entitled to this dataset or coin.
Fields
NotFound
404 — the dataset, coin, or partition does not exist.
Fields
503 — the catalog is temporarily unavailable. Safe to retry.
InternalServer
500 — an unexpected server error.
Fields
Api
Any other error response, carrying its raw status code.
Implementations§
Trait Implementations§
Source§impl Clone for TesseraError
impl Clone for TesseraError
Source§impl Debug for TesseraError
impl Debug for TesseraError
Source§impl Display for TesseraError
impl Display for TesseraError
impl Eq for TesseraError
Source§impl Error for TesseraError
impl Error for TesseraError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for TesseraError
impl PartialEq for TesseraError
impl StructuralPartialEq for TesseraError
Auto Trait Implementations§
impl Freeze for TesseraError
impl RefUnwindSafe for TesseraError
impl Send for TesseraError
impl Sync for TesseraError
impl Unpin for TesseraError
impl UnsafeUnpin for TesseraError
impl UnwindSafe for TesseraError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
impl<T> PlanCallbackArgs for T
impl<T> PlanCallbackOut for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more