userver
C++ Async Framework
Loading...
Searching...
No Matches
exceptions.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/ydb/exceptions.hpp
4
/// @brief YDB client exceptions
5
6
#
include
<
ydb
-
cpp
-
sdk
/
client
/
types
/
status
/
status
.
h
>
7
8
#
include
<
stdexcept
>
9
#
include
<
string
>
10
#
include
<
string_view
>
11
12
USERVER_NAMESPACE_BEGIN
13
14
namespace
ydb {
15
16
class
BaseError
:
public
std::runtime_error {
17
using
std::runtime_error::runtime_error;
18
};
19
20
class
YdbResponseError
:
public
BaseError
{
21
public
:
22
explicit
YdbResponseError(std::string_view operation_name, NYdb::TStatus&& status);
23
24
const
NYdb::TStatus& GetStatus()
const
noexcept
;
25
26
private
:
27
NYdb::TStatus status_;
28
};
29
30
class
UndefinedDatabaseError
:
public
BaseError
{
31
public
:
32
explicit
UndefinedDatabaseError(std::string error);
33
};
34
35
class
EmptyResponseError
:
public
BaseError
{
36
public
:
37
explicit
EmptyResponseError(std::string_view expected);
38
};
39
40
class
ParseError
:
public
BaseError
{
41
public
:
42
explicit
ParseError(std::string error);
43
};
44
45
class
ColumnParseError
:
public
ParseError
{
46
public
:
47
ColumnParseError(std::string_view column_name, std::string_view message);
48
};
49
50
class
TypeMismatchError
:
public
BaseError
{
51
public
:
52
TypeMismatchError(std::string_view name, std::string_view expected, std::string_view actual);
53
};
54
55
class
DeadlineExceededError
:
public
BaseError
{
56
public
:
57
explicit
DeadlineExceededError(std::string msg);
58
};
59
60
class
InvalidTransactionError
:
public
BaseError
{
61
public
:
62
InvalidTransactionError();
63
};
64
65
class
OperationCancelledError
:
public
BaseError
{
66
public
:
67
OperationCancelledError();
68
};
69
70
class
ResponseTruncatedError
:
public
BaseError
{
71
public
:
72
ResponseTruncatedError();
73
};
74
75
class
TransactionForceRollback
:
public
BaseError
{
76
public
:
77
TransactionForceRollback();
78
};
79
80
class
IgnoreResultsError
:
public
BaseError
{
81
public
:
82
IgnoreResultsError(std::string err);
83
};
84
85
}
// namespace ydb
86
87
USERVER_NAMESPACE_END
userver
ydb
exceptions.hpp
Generated on Thu May 21 2026 16:20:07 for userver by
Doxygen
1.13.2