pub enum SDKError {
InvalidCoordinateInput(String),
NetworkRequestFailed(String),
ResponseParsingFailure(String),
ProviderRequestRejected(String),
RateLimitExhausted,
ProviderNotConfigured(String),
CacheOperationFailure(CacheOperationFailureReason),
OfflineRoutingFailure(OfflineGraphInvalidReason),
}Expand description
Every failure path surfaced by the SDK. Serialized across the binding layer, so variants and field names are part of the frozen contract.
Variants§
InvalidCoordinateInput(String)
A coordinate, bounding box or request option failed validation.
NetworkRequestFailed(String)
The network transport failed (connection, timeout, or DNS).
ResponseParsingFailure(String)
The provider responded with a payload the parser could not use.
ProviderRequestRejected(String)
The provider returned a documented application-level failure status.
RateLimitExhausted
The token-bucket limiter is exhausted; retry after the next refill.
ProviderNotConfigured(String)
No provider implementation is registered for the requested contract.
CacheOperationFailure(CacheOperationFailureReason)
A cache read or write failed for the stated reason.
OfflineRoutingFailure(OfflineGraphInvalidReason)
The offline routing graph failed validation for the stated reason.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SDKError
impl<'de> Deserialize<'de> for SDKError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SDKError
Source§impl Error for SDKError
impl Error for SDKError
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()
impl StructuralPartialEq for SDKError
Auto Trait Implementations§
impl Freeze for SDKError
impl RefUnwindSafe for SDKError
impl Send for SDKError
impl Sync for SDKError
impl Unpin for SDKError
impl UnsafeUnpin for SDKError
impl UnwindSafe for SDKError
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