| 29 | const std::string& last_error() const { return last_error_; } |
| 30 | |
| 31 | std::string reason_string() const { |
| 32 | switch (reason_) { |
| 33 | case RetryErrorReason::kMaxRetriesExceeded: |
| 34 | return "maxRetriesExceeded"; |
| 35 | case RetryErrorReason::kErrorNotRetryable: |
| 36 | return "errorNotRetryable"; |
| 37 | case RetryErrorReason::kAborted: |
| 38 | return "abort"; |
| 39 | default: |
| 40 | return "unknown"; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | private: |
| 45 | RetryErrorReason reason_; |
nothing calls this directly
no outgoing calls
no test coverage detected