Добавлены структуры исключений

This commit is contained in:
Антон
2025-09-29 07:42:50 +03:00
parent 3db3778789
commit 049fcf0f48
3 changed files with 36 additions and 0 deletions
@@ -0,0 +1,18 @@
#include "exception422_unprocessable_entity.h"
#include <boost/beast/core/error.hpp>
using namespace std;
using namespace std::literals;
namespace uad
{
exception422_unprocessable_entity::exception422_unprocessable_entity(const string& info): message_(info)
{
}
char const* exception422_unprocessable_entity::what() const
{
return message_.c_str();
}
}
@@ -0,0 +1,16 @@
#pragma once
#include <exception>
#include <string>
namespace uad
{
struct exception422_unprocessable_entity : std::exception
{
private:
std::string message_;
public:
exception422_unprocessable_entity(const std::string& info);
char const* what() const override;
};
}