summaryrefslogtreecommitdiffstats
path: root/src/Core
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-23 20:57:00 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-23 20:57:00 +0200
commit415cd36477e152c12f91a10ad61bb719373cd9d1 (patch)
tree0c235f3b1f9b844313e81eb9e900fa2662ebefcc /src/Core
parent6666bbf908b3f2a61a9ec1959e975de54dc23b0d (diff)
downloadmad-415cd36477e152c12f91a10ad61bb719373cd9d1.tar
mad-415cd36477e152c12f91a10ad61bb719373cd9d1.zip
Authentifikation hinzugefügt.
Diffstat (limited to 'src/Core')
-rw-r--r--src/Core/Exception.cpp4
-rw-r--r--src/Core/Exception.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Core/Exception.cpp b/src/Core/Exception.cpp
index af39654..0029613 100644
--- a/src/Core/Exception.cpp
+++ b/src/Core/Exception.cpp
@@ -47,6 +47,8 @@ std::string Exception::strerror() const {
return ret + "Not found";
case INVALID_INPUT:
return ret + "Invalid input";
+ case PERMISSION:
+ return ret + "Permission denied";
case INTERNAL_ERRNO:
return ret + std::strerror(subCode);
case INVALID_ADDRESS:
@@ -57,6 +59,8 @@ std::string Exception::strerror() const {
return ret + "The daemon is unknown";
case DUPLICATE_ENTRY:
return ret + "Duplicate entry";
+ case AUTHENTICATION:
+ return ret + "Authentication failure";
default:
return ret + "Unknown error";
}
diff --git a/src/Core/Exception.h b/src/Core/Exception.h
index 15ff749..fb6fae7 100644
--- a/src/Core/Exception.h
+++ b/src/Core/Exception.h
@@ -31,11 +31,12 @@ class MAD_CORE_EXPORT Exception {
public:
enum ErrorCode {
SUCCESS = 0x0000, UNEXPECTED_PACKET = 0x0001, INVALID_ACTION = 0x0002, NOT_AVAILABLE = 0x0003, NOT_FINISHED = 0x0004, NOT_IMPLEMENTED = 0x0005,
- NOT_FOUND = 0x0006, INVALID_INPUT = 0x0007,
+ NOT_FOUND = 0x0006, INVALID_INPUT = 0x0007, PERMISSION = 0x0008,
INTERNAL_ERRNO = 0x0010,
INVALID_ADDRESS = 0x0020,
ALREADY_IDENTIFIED = 0x0030, UNKNOWN_DAEMON = 0x0031,
DUPLICATE_ENTRY = 0x0040,
+ AUTHENTICATION = 0x0050,
};
private: