From 2570410ed06fe7b831a782b2fe56dc7947327408 Mon Sep 17 00:00:00 2001 From: Padraig O'Sullivan Date: Sat, 19 Sep 2009 19:49:22 -0400 Subject: [PATCH] Updating the C++ exceptions file to build correctly. --- libmemcached/exception.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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() {} }; -- 2.30.2