userver
C++ Async Framework
Loading...
Searching...
No Matches
exception.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/server/handlers/auth/digest/exception.hpp
4
/// @brief Exception classes for server::handlers::auth::digest::Parser
5
6
#
include
<
stdexcept
>
7
#
include
<
string
>
8
#
include
<
vector
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
server::handlers::auth {
13
14
class
Exception
:
public
std::runtime_error {
15
public
:
16
explicit
Exception(std::string msg) : std::runtime_error(std::move(msg)) {}
17
};
18
19
class
ParseException
:
public
Exception
{
20
public
:
21
using
Exception
::Exception;
22
};
23
24
class
DuplicateDirectiveException
:
public
Exception
{
25
public
:
26
using
Exception
::Exception;
27
};
28
29
class
MissingDirectivesException
:
public
Exception
{
30
public
:
31
MissingDirectivesException(std::vector<std::string>&& missing_directives);
32
33
const
std::vector<std::string>& GetMissingDirectives()
const
noexcept
;
34
35
private
:
36
std::vector<std::string> missing_directives_;
37
};
38
39
}
// namespace server::handlers::auth
40
41
USERVER_NAMESPACE_END
userver
server
handlers
auth
digest
exception.hpp
Generated on Wed Jan 14 2026 20:05:16 for userver by
Doxygen
1.13.2