summaryrefslogtreecommitdiffstats
path: root/crypt/cryptexception.cpp
blob: 4cf2e6c2ab489e50366f404dd3361bc758e25754 (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, 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;
}