3#include <ydb-cpp-sdk/client/types/status/status.h>
13USERVER_NAMESPACE_BEGIN
17class BaseError :
public std::runtime_error {
18 using std::runtime_error::runtime_error;
23 explicit YdbResponseError(std::string_view operation_name, NYdb::TStatus&& status);
25 const NYdb::TStatus& GetStatus()
const noexcept;
28 NYdb::TStatus status_;
33 explicit UndefinedDatabaseError(std::string error);
38 explicit EmptyResponseError(std::string_view expected);
43 explicit ParseError(std::string error);
48 ColumnParseError(std::string_view column_name, std::string_view message);
53 TypeMismatchError(std::string_view name, std::string_view expected, std::string_view actual);
58 explicit DeadlineExceededError(std::string msg);
63 InvalidTransactionError();
68 OperationCancelledError();
73 ResponseTruncatedError();
78 TransactionForceRollback();
83 IgnoreResultsError(std::string err);