summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/QpidError.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/QpidError.cpp')
-rw-r--r--cpp/src/qpid/QpidError.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/qpid/QpidError.cpp b/cpp/src/qpid/QpidError.cpp
index fcd5af47a5..740ec24e54 100644
--- a/cpp/src/qpid/QpidError.cpp
+++ b/cpp/src/qpid/QpidError.cpp
@@ -34,9 +34,8 @@ Exception::auto_ptr QpidError::clone() const throw() { return Exception::auto_pt
void QpidError::throwSelf() const { throw *this; }
-void QpidError::init() {
- whatStr = boost::str(boost::format("Error [%d] %s (%s:%d)")
- % code % msg % loc.file % loc.line);
+std::string QpidError::message(int code, const std::string& msg, const char* file, int line) {
+ return (boost::format("Error [%d] %s (%s:%d)") % code % msg % file % line).str();
}