diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-07-07 18:51:35 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-07-07 18:51:35 +0200 |
commit | c4cbe4a94fd63e0da6e291a481b9a9ccc71e7843 (patch) | |
tree | 54fc3c43aec1b08f6918add662574b35a355e363 /src/Core | |
parent | f2f1d5b1da4f985bcbb0c075cf42efcacecae2a6 (diff) | |
download | mad-c4cbe4a94fd63e0da6e291a481b9a9ccc71e7843.tar mad-c4cbe4a94fd63e0da6e291a481b9a9ccc71e7843.zip |
Added add_user command to client & UserBackendMysql
Diffstat (limited to 'src/Core')
-rw-r--r-- | src/Core/Exception.cpp | 2 | ||||
-rw-r--r-- | src/Core/Exception.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Core/Exception.cpp b/src/Core/Exception.cpp index 1a71ebd..0e086d5 100644 --- a/src/Core/Exception.cpp +++ b/src/Core/Exception.cpp @@ -53,6 +53,8 @@ std::string Exception::strerror() const { return ret + "The host is already identified"; case UNKNOWN_DAEMON: return ret + "The daemon is unknown"; + case DUPLICATE_ENTRY: + return ret + "Duplicate entry"; default: return ret + "Unknown error"; } diff --git a/src/Core/Exception.h b/src/Core/Exception.h index 4d58190..ffbb59c 100644 --- a/src/Core/Exception.h +++ b/src/Core/Exception.h @@ -32,7 +32,8 @@ class Exception { NOT_FOUND = 0x0006, INTERNAL_ERRNO = 0x0010, INVALID_ADDRESS = 0x0020, - ALREADY_IDENTIFIED = 0x0030, UNKNOWN_DAEMON = 0x0031 + ALREADY_IDENTIFIED = 0x0030, UNKNOWN_DAEMON = 0x0031, + DUPLICATE_ENTRY = 0x0040, }; private: |