From c4cbe4a94fd63e0da6e291a481b9a9ccc71e7843 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 7 Jul 2009 18:51:35 +0200 Subject: Added add_user command to client & UserBackendMysql --- src/Core/Exception.cpp | 2 ++ src/Core/Exception.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Core') 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: -- cgit v1.2.3