src/Network/Error.hh
author terom
Tue, 16 Dec 2008 23:21:26 +0000
changeset 380 d193dd1d8a7e
child 400 d64bf28c4340
permissions -rw-r--r--
new NetworkReactor, fix everything to actually work
#ifndef NETWORK_ERROR_HH
#define NETWORK_ERROR_HH

#include "../Error.hh"

/**
 * An error class that appends the current value of errno as an error message
 *
 * <op>: <strerror>
 */
class NetworkErrno : public Error {
    protected:
        static std::string build_str (std::string op, int err);

    public:
        int err;

        NetworkErrno (std::string op);
};

#endif