summaryrefslogtreecommitdiffstats
path: root/crypt/cryptexception.cpp
blob: d839029591821904825c81f559cb4543f04d2475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "cryptexception.h"

CryptException::CryptException(std::string what, ReturnCode returnCode)
    :exception()
{
    this->whatMsg = what;
    this->retId = returnCode;
}

CryptException::~CryptException() throw()
{

}

const char *CryptException::what() const throw()
{
    return whatMsg.c_str();
}

CryptException::ReturnCode CryptException::returnCode() const
{
    return retId;
}