src/Network/Error.hh
author Tero Marttila <terom@fixme.fi>
Fri, 16 Jan 2009 22:03:49 +0200
changeset 400 d64bf28c4340
parent 380 d193dd1d8a7e
permissions -rw-r--r--
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
#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