summaryrefslogtreecommitdiffstats
path: root/crypt/cryptexception.cpp
diff options
context:
space:
mode:
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;
+}