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

Class AIError

include/ai/errors.h:17–21  ·  view source on GitHub ↗

Base class for all AI SDK errors

Source from the content-addressed store, hash-verified

15
16/// Base class for all AI SDK errors
17class AIError : public std::runtime_error {
18 public:
19 explicit AIError(const std::string& message) : std::runtime_error(message) {}
20 explicit AIError(const char* message) : std::runtime_error(message) {}
21};
22
23/// Error related to API communication
24class APIError : public AIError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected