exceptions.hpp

1
2
3
4
5
6
7
#pragma once


#include <felspar/exceptions/system_error.hpp>


namespace felspar::io {

Thrown when an IOP times out

11
12
13
14
15
16
17
18
19
20
21
22
23
24
    class timeout : public stdexcept::system_error {
        using superclass = stdexcept::system_error;

      public:
        static std::error_code const error;

        timeout(std::string msg, felspar::source_location const &loc)
        : superclass{error, std::move(msg), loc} {}
    };
    inline std::error_code const timeout::error = {
            ETIME, std::system_category()};


}