MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / reason_string

Method reason_string

include/ai/retry/retry_error.h:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected