pub struct MaxHttpRetriesExceededError {
pub code: u16,
pub tries: u32,
pub message: String,
pub error_reference: Option<String>,
}Expand description
Error returned when maximum retry attempts have been exhausted.
This error is raised when a request continues to fail with 429 or 500 responses after all configured retry attempts have been made.
§Example
use shopify_sdk::clients::MaxHttpRetriesExceededError;
let error = MaxHttpRetriesExceededError {
code: 429,
tries: 3,
message: r#"{"error":"Rate limited"}"#.to_string(),
error_reference: None,
};
println!("{}", error); // "Exceeded maximum retry count of 3. Last message: ..."Fields§
§code: u16The HTTP status code of the last response.
tries: u32The number of tries that were attempted.
message: StringSerialized error message from the last response.
error_reference: Option<String>Reference ID for error reporting (from X-Request-Id header).
Trait Implementations§
Source§impl Debug for MaxHttpRetriesExceededError
impl Debug for MaxHttpRetriesExceededError
Source§impl Error for MaxHttpRetriesExceededError
impl Error for MaxHttpRetriesExceededError
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 From<MaxHttpRetriesExceededError> for HttpError
impl From<MaxHttpRetriesExceededError> for HttpError
Source§fn from(source: MaxHttpRetriesExceededError) -> Self
fn from(source: MaxHttpRetriesExceededError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MaxHttpRetriesExceededError
impl RefUnwindSafe for MaxHttpRetriesExceededError
impl Send for MaxHttpRetriesExceededError
impl Sync for MaxHttpRetriesExceededError
impl Unpin for MaxHttpRetriesExceededError
impl UnwindSafe for MaxHttpRetriesExceededError
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