src/Network/Error.hh
changeset 380 d193dd1d8a7e
child 400 d64bf28c4340
equal deleted inserted replaced
379:2a8e780844d2 380:d193dd1d8a7e
       
     1 #ifndef NETWORK_ERROR_HH
       
     2 #define NETWORK_ERROR_HH
       
     3 
       
     4 #include "../Error.hh"
       
     5 
       
     6 /**
       
     7  * An error class that appends the current value of errno as an error message
       
     8  *
       
     9  * <op>: <strerror>
       
    10  */
       
    11 class NetworkErrno : public Error {
       
    12     protected:
       
    13         static std::string build_str (std::string op, int err);
       
    14 
       
    15     public:
       
    16         int err;
       
    17 
       
    18         NetworkErrno (std::string op);
       
    19 };
       
    20 
       
    21 #endif