summaryrefslogtreecommitdiffstats
path: root/src/Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core')
-rw-r--r--src/Core/Exception.cpp2
-rw-r--r--src/Core/Exception.h3
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: