pub enum SdkClientError {
BasePathError(ParseError),
JoinPathError(PathBuf),
ReqwestError(ReqwestError),
BodyToJsonError(ReqwestError, StatusCode),
DataToJsonError(Error),
MissingMessageField(ApiResponse, StatusCode),
MissingStatusField(ApiResponse, StatusCode),
GenericApiError(String, ApiResponse, StatusCode),
}
Expand description
All possible errors coming from the SDK Client.
Variants§
BasePathError(ParseError)
Cannot parse the base path to a url: {0}
JoinPathError(PathBuf)
Cannot join a path to base path
ReqwestError(ReqwestError)
Reqwest crate errors
BodyToJsonError(ReqwestError, StatusCode)
Error interpreting the HTTP Response body to Json ({1}) {0:#?}
DataToJsonError(Error)
Error interpreting the .data
field into T
MissingMessageField(ApiResponse, StatusCode)
Missing the ‘status’ field in Json response ({1})
MissingStatusField(ApiResponse, StatusCode)
Missing the ‘message’ field in Json response when status is ‘error’ ({1})
GenericApiError(String, ApiResponse, StatusCode)
Error coming from the Api ({2}): {0} {1:#?}
Trait Implementations§
Source§impl Debug for SdkClientError
impl Debug for SdkClientError
Source§impl Display for SdkClientError
impl Display for SdkClientError
Source§impl Error for SdkClientError
impl Error for SdkClientError
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()
Auto Trait Implementations§
impl Freeze for SdkClientError
impl !RefUnwindSafe for SdkClientError
impl Send for SdkClientError
impl Sync for SdkClientError
impl Unpin for SdkClientError
impl !UnwindSafe for SdkClientError
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