diff options
author | Alan Conway <aconway@apache.org> | 2007-04-25 18:06:14 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-04-25 18:06:14 +0000 |
commit | aefcbcdd3f930f4934b022df6b214d6a62f81d35 (patch) | |
tree | c7684560898c7bf04ff485eaf3d8038a9d19f58b /cpp/src/qpid/Exception.cpp | |
parent | d026ee76c093fe93afe15053d099e6ecc68a64ff (diff) | |
download | qpid-python-aefcbcdd3f930f4934b022df6b214d6a62f81d35.tar.gz |
* qpid/CommonOptions.h:
- Convenience classs/functions to use boost::program_options.
- CommonOptions class for options common to client/broker.
* qpid/broker/Broker.h:
- Replaced broker::Configuration with class Broker::Options,
derived from CommonOptions.
* qpidd.cpp: Updated options handling.
* qpid/Exception.h: Added strError function to get std::string from errno.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@532430 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/Exception.cpp')
-rw-r--r-- | cpp/src/qpid/Exception.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/qpid/Exception.cpp b/cpp/src/qpid/Exception.cpp index 1bbf89e99f..e73f64f2ba 100644 --- a/cpp/src/qpid/Exception.cpp +++ b/cpp/src/qpid/Exception.cpp @@ -20,9 +20,15 @@ */ #include "Exception.h" +#include <errno.h> 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) {} |