src/Network/Error.hh
author Tero Marttila <terom@fixme.fi>
Thu, 22 Jan 2009 02:56:50 +0200
branchnew_graphics
changeset 420 278020dcd9b7
parent 400 d64bf28c4340
permissions -rw-r--r--
clean up Server/Client log output a bit
#ifndef NETWORK_ERROR_HH
#define NETWORK_ERROR_HH

/**
 * @file
 *
 * Base classes for shared errno-enabled errors
 */

#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