10Duke Scale C++ Client
Loading...
Searching...
No Matches
CryptoException.h
1#ifndef TENDUKE_CRYPTO_CRYPTOEXCEPTION_H
2#define TENDUKE_CRYPTO_CRYPTOEXCEPTION_H
3
4#include "TendukeException.h"
5#include <string>
6
7namespace tenduke { namespace crypto {
8
9
14{
15public:
24 std::string errorCode,
25 const std::string &message,
26 const long statusCode,
27 const char * const technicalErrorMessage
30 {}
37 const std::string &errorCode,
38 const std::string &message
39 ) : CryptoException(errorCode, message, 0, nullptr)
40 {}
41 ~CryptoException() override = default;
42
44 const std::string errorCode;
46 const long statusCode; // long because libcrypto uses longs for error codes...
48 const std::string technicalErrorMessage; // Provided by e.g. library used
49};
50
51
52}}
53
54#endif // TENDUKE_CRYPTO_CRYPTOEXCEPTION_H
Base class for exceptions thrown by 10Duke C++ clients.
Definition TendukeException.h:13
Thrown when something goes with crypto.
Definition CryptoException.h:14
CryptoException(const std::string &errorCode, const std::string &message)
Constructs new instance.
Definition CryptoException.h:36
const std::string errorCode
Error code.
Definition CryptoException.h:44
const std::string technicalErrorMessage
Technical error message.
Definition CryptoException.h:48
CryptoException(std::string errorCode, const std::string &message, const long statusCode, const char *const technicalErrorMessage)
Constructs new instance.
Definition CryptoException.h:23
const long statusCode
Status code from underlying library.
Definition CryptoException.h:46
Cryptography services.
Definition CryptoException.h:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7