#[non_exhaustive]pub enum TesseraError {
Configuration(String),
InvalidArgument(String),
Network(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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
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 plan does not grant access 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§fn clone(&self) -> TesseraError
fn clone(&self) -> TesseraError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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)>
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 PartialEq for TesseraError
impl PartialEq for TesseraError
Source§fn eq(&self, other: &TesseraError) -> bool
fn eq(&self, other: &TesseraError) -> bool
Tests for
self and other values to be equal, and is used by ==.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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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> ⓘ
Converts
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> ⓘ
Converts
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>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more