#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; }