2020-05-05 12:11:54 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <string>
|
|
|
|
|
2020-05-05 18:43:35 +00:00
|
|
|
namespace paxos
|
2020-05-05 12:11:54 +00:00
|
|
|
{
|
|
|
|
struct ParsingError : public std::logic_error
|
|
|
|
{
|
|
|
|
explicit ParsingError(const std::string& what_arg)
|
|
|
|
: std::logic_error{"Parsing error: " + what_arg}
|
|
|
|
{}
|
|
|
|
virtual ~ParsingError() = default;
|
|
|
|
};
|
2020-05-06 16:51:50 +00:00
|
|
|
} // namespace paxos
|