userver
C++ Async Framework
Toggle main menu visibility
Documentation
API Groups
Namespaces
Reference
Class List
Class Index
File List
Macros
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
exceptions.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/storages/mysql/exceptions.hpp
4
5
#
include
<
stdexcept
>
6
7
USERVER_NAMESPACE_BEGIN
8
9
namespace
storages::
mysql
{
10
11
/// @brief Base class for all uMySQL driver exceptions
12
class
MySQLException
:
public
std::runtime_error {
13
public
:
14
MySQLException(
unsigned
int
error,
const
char
* message);
15
MySQLException(
unsigned
int
error,
const
std::string& message);
16
17
~MySQLException() override;
18
19
unsigned
int
GetErrno()
const
;
20
21
private
:
22
unsigned
int
errno_;
23
};
12
class
MySQLException
:
public
std::runtime_error {
…
};
24
25
/// @brief IO exception (read/write timeout/cancelled)
26
class
MySQLIOException
:
public
MySQLException
{
27
public
:
28
using
MySQLException
::MySQLException;
29
30
~MySQLIOException() override;
31
};
26
class
MySQLIOException
:
public
MySQLException
{
…
};
32
33
/// @brief Statement exception - something went wrong with the statement
34
class
MySQLStatementException
:
public
MySQLException
{
35
public
:
36
using
MySQLException
::MySQLException;
37
38
~MySQLStatementException() override;
39
};
34
class
MySQLStatementException
:
public
MySQLException
{
…
};
40
41
/// @brief Command exception - something went wrong with the command
42
class
MySQLCommandException
:
public
MySQLException
{
43
public
:
44
using
MySQLException
::MySQLException;
45
46
~MySQLCommandException() override;
47
};
42
class
MySQLCommandException
:
public
MySQLException
{
…
};
48
49
/// @brief Transaction exception - something went wrong with the transaction
50
class
MySQLTransactionException
:
public
MySQLException
{
51
public
:
52
using
MySQLException
::MySQLException;
53
54
~MySQLTransactionException() override;
55
};
50
class
MySQLTransactionException
:
public
MySQLException
{
…
};
56
57
/// @brief
58
class
MySQLValidationException
:
public
MySQLException
{
59
public
:
60
using
MySQLException
::MySQLException;
61
62
~MySQLValidationException() override;
63
};
58
class
MySQLValidationException
:
public
MySQLException
{
…
};
64
65
}
// namespace storages::mysql
66
67
USERVER_NAMESPACE_END
userver
storages
mysql
exceptions.hpp
Generated on Wed Apr 30 2025 15:50:30 for userver by
Doxygen
1.13.2