pub enum ApiClientError<T> {
ParseError(ParseError),
ClientError(Error),
ServiceError(T),
InvalidResponse(StatusCode, Bytes),
}Variants§
ParseError(ParseError)
This can only occur when a invalid base URL was provided.
ClientError(Error)
An error occurred in reqwest.
ServiceError(T)
An error returned from the service. These errors are specific to the endpoint that was called.
InvalidResponse(StatusCode, Bytes)
A response was received, but we were unable to deserialize it. The status code and the receive body are returned.
Trait Implementations§
Source§impl<T: Debug> Debug for ApiClientError<T>
impl<T: Debug> Debug for ApiClientError<T>
Source§impl<T> Display for ApiClientError<T>where
T: Display,
impl<T> Display for ApiClientError<T>where
T: Display,
Source§impl<T> Error for ApiClientError<T>
impl<T> Error for ApiClientError<T>
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<T> From<Error> for ApiClientError<T>
impl<T> From<Error> for ApiClientError<T>
Source§impl<T> From<ParseError> for ApiClientError<T>
impl<T> From<ParseError> for ApiClientError<T>
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for ApiClientError<T>
impl<T> !RefUnwindSafe for ApiClientError<T>
impl<T> Send for ApiClientError<T>where
T: Send,
impl<T> Sync for ApiClientError<T>where
T: Sync,
impl<T> Unpin for ApiClientError<T>where
T: Unpin,
impl<T> !UnwindSafe for ApiClientError<T>
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