10Duke Enterprise C++ Client
|
#include <LicensingError.h>
Describes an error returned from the API.
Licensing operations (checkout, release) can work on multiple items (licenses, leases) per request. Any of the items can fail for various reasons, in which case the API reports the error per item. This class describes the error for single item. The client returns errors as map, where the key is the item identifier (e.g. licensed item name or lease id) and value is the error.
Public Member Functions | |
const std::string & | getErrorCode () const |
Returns the error code. | |
const std::string & | getErrorKey () const |
Returns the error key. | |
const std::string & | getErrorMessage () const |
Returns error message. | |
const std::string & | getErrorTechnical () const |
Returns technical explanation. | |
const std::string & | getItemName () const |
Returns the "item" name which this error is about. | |
void | setErrorCode (const std::string &code) |
Sets the error code. | |
void | setErrorKey (const std::string &key) |
Sets the error key. | |
void | setErrorMessage (const std::string &message) |
Sets the error message. | |
void | setErrorTechnical (const std::string &technical) |
Sets the technical explanation. | |
void | setItemName (const std::string &pItemName) |
Sets the "item" name. | |
|
inline |
Returns the error code.
|
inline |
Returns the error key.
|
inline |
Returns error message.
|
inline |
Returns technical explanation.
|
inline |
Returns the "item" name which this error is about.
E.g. licensed item name.
|
inline |
Sets the error code.
code | - |
|
inline |
Sets the error key.
key | - |
|
inline |
Sets the error message.
message | - |
|
inline |
Sets the technical explanation.
technical | - |
|
inline |
Sets the "item" name.
pItemName | - |