William A. Kennington III | 2f21073 | 2020-08-02 16:12:36 -0700 | [diff] [blame] | 1 | #include <stdplus/exception.hpp> |
| 2 | |
| 3 | namespace stdplus |
| 4 | { |
| 5 | namespace exception |
| 6 | { |
| 7 | |
| 8 | WouldBlock::WouldBlock(const char* what) : |
| 9 | std::system_error(std::make_error_code(std::errc::operation_would_block), |
| 10 | what) |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | WouldBlock::WouldBlock(const std::string& what) : |
| 15 | std::system_error(std::make_error_code(std::errc::operation_would_block), |
| 16 | what) |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | Eof::Eof(const char* what) : |
| 21 | std::system_error(std::make_error_code(std::errc::no_message_available), |
| 22 | what) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | Eof::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 |