src/Network/Error.hh
changeset 380 d193dd1d8a7e
child 400 d64bf28c4340
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Network/Error.hh	Tue Dec 16 23:21:26 2008 +0000
@@ -0,0 +1,21 @@
+#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