3#include <ydb-cpp-sdk/v2/client/types/status/status.h>
13class BaseError :
public std::runtime_error {
14 using std::runtime_error::runtime_error;
19 explicit YdbResponseError(std::string_view operation_name, NYdb::TStatus&& status);
21 const NYdb::TStatus& GetStatus()
const noexcept;
24 NYdb::TStatus status_;
29 explicit UndefinedDatabaseError(std::string error);
34 explicit EmptyResponseError(std::string_view expected);
39 explicit ParseError(std::string error);
44 ColumnParseError(std::string_view column_name, std::string_view message);
49 TypeMismatchError(std::string_view name, std::string_view expected, std::string_view actual);
54 explicit DeadlineExceededError(std::string msg);
59 InvalidTransactionError();
64 OperationCancelledError();
69 ResponseTruncatedError();
74 TransactionForceRollback();
79 IgnoreResultsError(std::string err);