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 {
15 public:
16 explicit Exception(std::string msg) : std::runtime_error(std::move(msg)) {}
17};
18
19class ParseException : public Exception {
20 public:
21 using Exception::Exception;
22};
23
25 public:
26 using Exception::Exception;
27};
28
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
41USERVER_NAMESPACE_END