generated from Sithas/conan_template
21 lines
499 B
C++
21 lines
499 B
C++
#pragma once
|
|
|
|
#include <boost/beast/http/status.hpp>
|
|
#include <string>
|
|
#include <boost/exception/to_string.hpp>
|
|
|
|
namespace uad
|
|
{
|
|
struct session_exception : std::exception
|
|
{
|
|
const boost::beast::http::status code;
|
|
const std::string comment;
|
|
const std::string message;
|
|
|
|
session_exception(const boost::beast::http::status ec, const std::string info)
|
|
: code(ec), comment(info), message(std::to_string(static_cast<uint64_t>(ec)) + " - " + comment)
|
|
{}
|
|
char const* what() const override;
|
|
};
|
|
}
|