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

Method APIError

include/ai/errors.h:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28 public:
29 APIError(int status_code, const std::string& message)
30 : AIError("API Error (" + std::to_string(status_code) + "): " + message),
31 status_code_(status_code) {}
32
33 int status_code() const { return status_code_; }
34

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected