| 53 | |
| 54 | #[derive(Debug, Clone)] |
| 55 | pub struct ApiErrorInfo { |
| 56 | pub message: String, |
| 57 | pub is_retryable: bool, |
| 58 | pub response_headers: Option<std::collections::HashMap<String, String>>, |
| 59 | pub response_body: Option<String>, |
| 60 | } |
| 61 | |
| 62 | pub fn retryable(error: &crate::MessageError) -> Option<String> { |
| 63 | match error { |
nothing calls this directly
no outgoing calls
no test coverage detected