userver: userver/server/handlers/auth/digest/exception.hpp Source File
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
10USERVER_NAMESPACE_BEGIN
11
12namespace server::handlers::auth {
13
14class Exception : public std::runtime_error {
15public:
16 explicit Exception(std::string msg) : std::runtime_error(std::move(msg)) {}
17};
18
19class ParseException : public Exception {
20public:
21 using Exception::Exception;
22};
23
25public:
26 using Exception::Exception;
27};
28
30public:
31 MissingDirectivesException(std::vector<std::string>&& missing_directives);
32
33 const std::vector<std::string>& GetMissingDirectives() const noexcept;
34
35private:
36 std::vector<std::string> missing_directives_;
37};
38
39} // namespace server::handlers::auth
40
41USERVER_NAMESPACE_END