From: Padraig O'Sullivan Date: Sat, 19 Sep 2009 23:49:22 +0000 (-0400) Subject: Updating the C++ exceptions file to build correctly. X-Git-Tag: 0.34~13^2~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2570410ed06fe7b831a782b2fe56dc7947327408;hp=258dd2a53afad021c342efde0a6b43b055b5602b;p=awesomized%2Flibmemcached Updating the C++ exceptions file to build correctly. --- diff --git a/libmemcached/exception.hpp b/libmemcached/exception.hpp index 963f3835..0754dff0 100644 --- a/libmemcached/exception.hpp +++ b/libmemcached/exception.hpp @@ -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 in_errno) : Exception(msg, in_errno) {} - Warning(const char *msg, bool in_errno) : Exception(msg, in_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 in_errno) : Exception(msg, in_errno) {} - Error(const char *msg, bool in_errno) : Exception(msg, in_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() {} };