summaryrefslogtreecommitdiffstats
path: root/crypt/cryptexception.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-09-04 20:56:41 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-09-04 20:56:41 +0200
commita1aa74e5edb90266637c529dd96dd3487ac7d712 (patch)
tree09b3d4400f342e1d0c299a60abac207cac7e7a63 /crypt/cryptexception.cpp
parentee895e9a12b1bad4f1151aba4766102fcef1073e (diff)
downloadsrc-a1aa74e5edb90266637c529dd96dd3487ac7d712.tar.gz
src-a1aa74e5edb90266637c529dd96dd3487ac7d712.zip
FÃge CryptException zur Fehlerbehandlung hinzu
Diffstat (limited to 'crypt/cryptexception.cpp')
-rw-r--r--crypt/cryptexception.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/crypt/cryptexception.cpp b/crypt/cryptexception.cpp
new file mode 100644
index 0000000..4cf2e6c
--- /dev/null
+++ b/crypt/cryptexception.cpp
@@ -0,0 +1,23 @@
+#include "cryptexception.h"
+
+CryptException::CryptException(std::string what, int returnCode)
+ :exception()
+{
+ this->whatMsg = what;
+ this->retId = returnCode;
+}
+
+CryptException::~CryptException() throw()
+{
+
+}
+
+const char *CryptException::what() const throw()
+{
+ return whatMsg.c_str();
+}
+
+int CryptException::returnCode() const
+{
+ return retId;
+}