Updating the C++ exceptions file to build correctly.
[awesomized/libmemcached] / libmemcached / exception.hpp
index 779280b9d55ab9aed67fe229d1b8f2dd1629d3dd..0754dff02f6865310fe72f3b68dc1e758958bbf1 100644 (file)
@@ -21,40 +21,40 @@ namespace memcache
   class Exception : public std::runtime_error
   {
   public:
-    Exception(const std::string& msg, bool in_errno)
+    Exception(const std::string& msg, int in_errno)
       : 
         std::runtime_error(msg), 
-        errno(in_errno) 
+        _errno(in_errno) 
     {}
 
-    Exception(const char *msg, bool in_errno)
+    Exception(const char *msg, int in_errno)
       : 
         std::runtime_error(msg), 
-        errno(in_errno) {}
+        _errno(in_errno) {}
 
     virtual ~Exception() throw() {}
 
     int getErrno() const 
     { 
-      return errno; 
+      return _errno; 
     }
 
   private:
-    int errno;
+    int _errno;
   };
 
   class Warning : public Exception
   {
   public:
-    Warning(const std::string& msg, bool errno) : Exception(msg, errno) {}
-    Warning(const char *msg, bool errno) : Exception(msg, errno) {}
+    Warning(const std::string& msg, int in_errno) : Exception(msg, in_errno) {}
+    Warning(const char *msg, int in_errno) : Exception(msg, in_errno) {}
   };
 
   class Error : public Exception
   {
   public:
-    Error(const std::string& msg, bool errno) : Exception(msg, errno) {}
-    Error(const char *msg, bool errno) : Exception(msg, errno) {}
+    Error(const std::string& msg, int in_errno) : Exception(msg, in_errno) {}
+    Error(const char *msg, int in_errno) : Exception(msg, in_errno) {}
     virtual ~Error() throw() {}
   };