From c964aa2708ed2839ded3c35eed7338f3e81f568f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 24 Aug 2009 04:47:54 +0200 Subject: =?UTF-8?q?Authentifikation:=20=C3=9Cbertrage=20Passw=C3=B6rter=20?= =?UTF-8?q?gehasht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Core/Exception.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/Core/Exception.cpp') diff --git a/src/Core/Exception.cpp b/src/Core/Exception.cpp index 3e9da4d..220e6fd 100644 --- a/src/Core/Exception.cpp +++ b/src/Core/Exception.cpp @@ -33,34 +33,49 @@ void Exception::updateWhatStr() { switch(errorCode) { case SUCCESS: whatStr += "Success"; + break; case UNEXPECTED_PACKET: whatStr += "An unexpected packet was received"; + break; case INVALID_ACTION: whatStr += "The action is invalid"; + break; case NOT_AVAILABLE: whatStr += "Not available"; + break; case NOT_FINISHED: whatStr += "Not finished"; + break; case NOT_IMPLEMENTED: whatStr += "Not implemented"; + break; case NOT_FOUND: whatStr += "Not found"; + break; case INVALID_INPUT: whatStr += "Invalid input"; + break; case PERMISSION: whatStr += "Permission denied"; + break; case INTERNAL_ERRNO: whatStr += std::strerror(subCode); + break; case INVALID_ADDRESS: whatStr += "Invalid address"; + break; case ALREADY_IDENTIFIED: whatStr += "The host is already identified"; + break; case UNKNOWN_DAEMON: whatStr += "The daemon is unknown"; + break; case DUPLICATE_ENTRY: whatStr += "Duplicate entry"; + break; case AUTHENTICATION: whatStr += "Authentication failure"; + break; default: whatStr += "Unknown error"; } -- cgit v1.2.3