10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
LicensingError.h
1#ifndef TENDUKE_EE_LICENSING_LICENSECHECKOUTERROR_H
2#define TENDUKE_EE_LICENSING_LICENSECHECKOUTERROR_H
3
4#include <string>
5
6namespace tenduke { namespace ee { namespace licensing {
7
8
18{
19public:
20 LicensingError() = default;
21
26 const std::string & getErrorCode() const {return errorCode;}
27
32 const std::string & getErrorKey() const {return errorKey;}
33
38 const std::string & getErrorMessage() const {return errorMessage;}
39
44 const std::string & getErrorTechnical() const {return errorTechnical;}
45
50 const std::string & getItemName() const {return itemName;}
51
56 void setErrorCode(const std::string &code) { this->errorCode = code;}
57
62 void setErrorKey(const std::string &key) { this->errorKey = key;}
63
68 void setErrorMessage(const std::string &message) { this->errorMessage = message;}
69
74 void setErrorTechnical(const std::string &technical) { this->errorTechnical = technical;}
75
80 void setItemName(const std::string &pItemName) { this->itemName = pItemName;}
81
82private:
83 std::string errorCode;
84 std::string errorKey;
85 std::string errorMessage;
86 std::string errorTechnical;
87 std::string itemName;
88};
89
90
91}}}
92
93#endif // TENDUKE_EE_LICENSING_LICENSECHECKOUTERROR_H
Describes an error returned from the API.
Definition LicensingError.h:18
const std::string & getErrorTechnical() const
Returns technical explanation.
Definition LicensingError.h:44
const std::string & getErrorMessage() const
Returns error message.
Definition LicensingError.h:38
const std::string & getErrorCode() const
Returns the error code.
Definition LicensingError.h:26
void setErrorCode(const std::string &code)
Sets the error code.
Definition LicensingError.h:56
void setErrorTechnical(const std::string &technical)
Sets the technical explanation.
Definition LicensingError.h:74
const std::string & getItemName() const
Returns the "item" name which this error is about.
Definition LicensingError.h:50
void setErrorKey(const std::string &key)
Sets the error key.
Definition LicensingError.h:62
void setErrorMessage(const std::string &message)
Sets the error message.
Definition LicensingError.h:68
const std::string & getErrorKey() const
Returns the error key.
Definition LicensingError.h:32
void setItemName(const std::string &pItemName)
Sets the "item" name.
Definition LicensingError.h:80
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4