10Duke Enterprise C++ SDK
Toggle main menu visibility
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
7
namespace
tenduke
{
namespace
crypto
{
8
9
13
class
CryptoException
:
public
tenduke::TendukeException
14
{
15
public
:
23
CryptoException
(
24
std::string
errorCode
,
25
const
std::string &message,
26
const
long
statusCode
,
27
const
char
*
const
technicalErrorMessage
28
) :
tenduke
::
TendukeException
(message),
errorCode
(std::move(
errorCode
)),
statusCode
(
statusCode
),
29
technicalErrorMessage
(
technicalErrorMessage
== nullptr ?
""
: std::string(
technicalErrorMessage
))
30
{}
31
36
CryptoException
(
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
CryptoException::CryptoException
CryptoException(std::string errorCode, const std::string &message, const long statusCode, const char *const technicalErrorMessage)
Constructs new instance.
Definition
CryptoException.h:23
tenduke::TendukeException
Base class for exceptions thrown by 10Duke C++ clients.
Definition
TendukeException.h:13
tenduke::TendukeException::TendukeException
TendukeException(const std::string &message)
Constructs new instance.
Definition
TendukeException.h:19
tenduke::crypto::CryptoException
Thrown when something goes with crypto.
Definition
CryptoException.h:14
tenduke::crypto::CryptoException::CryptoException
CryptoException(const std::string &errorCode, const std::string &message)
Constructs new instance.
Definition
CryptoException.h:36
tenduke::crypto::CryptoException::errorCode
const std::string errorCode
Error code.
Definition
CryptoException.h:44
tenduke::crypto::CryptoException::technicalErrorMessage
const std::string technicalErrorMessage
Technical error message.
Definition
CryptoException.h:48
tenduke::crypto::CryptoException::CryptoException
CryptoException(std::string errorCode, const std::string &message, const long statusCode, const char *const technicalErrorMessage)
Constructs new instance.
Definition
CryptoException.h:23
tenduke::crypto::CryptoException::statusCode
const long statusCode
Status code from underlying library.
Definition
CryptoException.h:46
tenduke::crypto
Cryptography services.
Definition
AbstractCiphers.h:12
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
crypto
CryptoException.h
Generated by
1.17.0