summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/QpidError.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2006-11-29 14:36:08 +0000
committerAlan Conway <aconway@apache.org>2006-11-29 14:36:08 +0000
commitb13e1a24fcca8797b7be5a242f164afbe17ec4f6 (patch)
treeef0362e52c125bc75b07ef3e374dabfa52254e98 /cpp/src/qpid/QpidError.cpp
parent16d818e749462daf5e0e43079b2e48991646c619 (diff)
downloadqpid-python-b13e1a24fcca8797b7be5a242f164afbe17ec4f6.tar.gz
Posix EventChannel implementation using epoll. Placeholder for kevents.
Dynamic thread pool EventChannelThreads to serve EventChannel. Misc cleanup/enhancements. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480582 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/QpidError.cpp')
-rw-r--r--cpp/src/qpid/QpidError.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/cpp/src/qpid/QpidError.cpp b/cpp/src/qpid/QpidError.cpp
index 0b5135269b..70fff6550a 100644
--- a/cpp/src/qpid/QpidError.cpp
+++ b/cpp/src/qpid/QpidError.cpp
@@ -24,12 +24,21 @@
using namespace qpid;
-QpidError::QpidError(int _code, const std::string& _msg, const std::string& _file, int _line) throw()
- : code(_code), msg(_msg), file(_file), line(_line)
+QpidError::QpidError() : code(0) {}
+
+QpidError::QpidError(int _code, const std::string& _msg,
+ const SrcLine& _loc) throw()
+ : code(_code), msg(_msg), location(_loc)
{
std::ostringstream os;
- os << "QpidError(" << code << ") " << msg << " (" << file << ":" << line << ")";
+ os << "Error [" << code << "] " << msg << " ("
+ << location.file << ":" << location.line << ")";
whatStr = os.str();
}
QpidError::~QpidError() throw() {}
+
+Exception* QpidError::clone() const throw() { return new QpidError(*this); }
+
+void QpidError::throwSelf() const { throw *this; }
+