paxos/src/error/parsing-error.hh

16 lines
330 B
C++
Raw Permalink Normal View History

2020-05-05 12:11:54 +00:00
#pragma once
#include <stdexcept>
#include <string>
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