16 lines
329 B
C++
16 lines
329 B
C++
#pragma once
|
|
|
|
#include <stdexcept>
|
|
#include <string>
|
|
|
|
namespace paxos
|
|
{
|
|
struct ParsingError : public std::logic_error
|
|
{
|
|
explicit ParsingError(const std::string& what_arg)
|
|
: std::logic_error{"Parsing error: " + what_arg}
|
|
{}
|
|
virtual ~ParsingError() = default;
|
|
};
|
|
} // namespace http
|