⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
userver
C++ Async Framework v2.0
Documentation
API Groups
Namespaces
Reference
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
y
Variables
k
n
r
u
w
Typedefs
c
d
h
m
n
o
p
s
t
u
v
Enumerations
a
b
c
d
f
h
i
l
o
p
r
s
t
u
v
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Symbols
File List
File Members
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
exceptions.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/cache/exceptions.hpp
4
/// @brief Exceptions thrown by components::CachingComponentBase
5
6
#
include
<
stdexcept
>
7
#
include
<
string
>
8
#
include
<
string_view
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
cache {
13
14
/// Thrown by components::CachingComponentBase::Get if the cache is empty and
15
/// `MayReturnNull` returns `false` (as by default).
16
class
EmptyCacheError
final
:
public
std::runtime_error {
17
public
:
18
explicit
EmptyCacheError(std::string_view cache_name);
19
};
20
21
/// Thrown by components::CachingComponentBase::PreAssignCheck when the new
22
/// value does not pass the check.
23
class
DataError
:
public
std::runtime_error {
24
using
std::runtime_error::runtime_error;
25
};
26
27
class
EmptyDataError
final
:
public
DataError
{
28
public
:
29
explicit
EmptyDataError(std::string_view cache_name);
30
};
31
32
}
// namespace cache
33
34
USERVER_NAMESPACE_END
Docs version:
v1.0
,
v2.0
,
trunk/develop
userver
cache
exceptions.hpp
Generated on Wed May 15 2024 22:22:20 for userver by
Doxygen
1.10.0