diff options
| author | Ted Ross <tross@apache.org> | 2008-09-10 19:14:01 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2008-09-10 19:14:01 +0000 |
| commit | 51ea054146d0af71640bd44e8e75494847216a31 (patch) | |
| tree | f262995946ace31dbb3d3660db9df58e4f412ac3 /cpp/src/qpid/management/Manageable.cpp | |
| parent | 0b778c328001d25b3118450c0bfabb3e0b918971 (diff) | |
| download | qpid-python-51ea054146d0af71640bd44e8e75494847216a31.tar.gz | |
QPID-1279 Implementations of management methods can now return error strings along with its own error codes
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@693933 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/management/Manageable.cpp')
| -rw-r--r-- | cpp/src/qpid/management/Manageable.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/management/Manageable.cpp b/cpp/src/qpid/management/Manageable.cpp index 19fba87fde..08bb541fc7 100644 --- a/cpp/src/qpid/management/Manageable.cpp +++ b/cpp/src/qpid/management/Manageable.cpp @@ -20,9 +20,13 @@ #include "Manageable.h" using namespace qpid::management; +using std::string; -std::string Manageable::StatusText (status_t status) +string Manageable::StatusText (status_t status, string text) { + if ((status & STATUS_USER) == STATUS_USER) + return text; + switch (status) { case STATUS_OK : return "OK"; @@ -37,7 +41,7 @@ std::string Manageable::StatusText (status_t status) return "??"; } -Manageable::status_t Manageable::ManagementMethod (uint32_t, Args&) +Manageable::status_t Manageable::ManagementMethod (uint32_t, Args&, std::string&) { return STATUS_UNKNOWN_METHOD; } |
