blob: d51bd1689aad59cda20ff5c7b36174d3ad28908a [file] [log] [blame]
William A. Kennington III2f210732020-08-02 16:12:36 -07001#include <stdplus/exception.hpp>
2
3namespace stdplus
4{
5namespace exception
6{
7
8WouldBlock::WouldBlock(const char* what) :
9 std::system_error(std::make_error_code(std::errc::operation_would_block),
10 what)
11{
12}
13
14WouldBlock::WouldBlock(const std::string& what) :
15 std::system_error(std::make_error_code(std::errc::operation_would_block),
16 what)
17{
18}
19
20Eof::Eof(const char* what) :
21 std::system_error(std::make_error_code(std::errc::no_message_available),
22 what)
23{
24}
25
26Eof::Eof(const std::string& what) :
27 std::system_error(std::make_error_code(std::errc::no_message_available),
28 what)
29{
30}
31
32} // namespace exception
33} // namespace stdplus