diff options
Diffstat (limited to 'cpp/lib/common/Exception.cpp')
-rw-r--r-- | cpp/lib/common/Exception.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/lib/common/Exception.cpp b/cpp/lib/common/Exception.cpp index 0161518011..64d88af1b4 100644 --- a/cpp/lib/common/Exception.cpp +++ b/cpp/lib/common/Exception.cpp @@ -19,10 +19,16 @@ * */ -#include <Exception.h> +#include "Exception.h" +#include <cerrno> namespace qpid { +std::string strError(int err) { + char buf[512]; + return std::string(strerror_r(err, buf, sizeof(buf))); +} + Exception::Exception() throw() {} Exception::Exception(const std::string& str) throw() : whatStr(str) {} |