paxos/src/error/connection-failed.hh

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

2020-05-05 12:11:54 +00:00
#pragma once
#include <stdexcept>
#include <string>
#include <system_error>
namespace paxos
2020-05-05 12:11:54 +00:00
{
struct ConnectionFailed : public std::system_error
{
explicit ConnectionFailed()
: std::system_error{errno, std::system_category()}
{}
};
2020-05-06 16:51:50 +00:00
} //namespace paxos