|
MIP SDK — C++ 1.18
API Reference Documentation for C++
|
Base class for all errors that will be reported (thrown or returned) from MIP SDK. More...
#include <mip/error.h>
Public Member Functions | |
| char const * | what () const noexcept override |
| Get the error message. | |
| virtual std::shared_ptr< Error > | Clone () const =0 |
| Clone the error. | |
| virtual ErrorType | GetErrorType () const |
| Get the error type. | |
| const std::string & | GetErrorName () const |
| Get the error name. | |
| const std::string & | GetMessage (bool maskPII=false) const |
| Get the error message. | |
| void | SetMessage (const std::string &msg) |
| Set the error message. | |
| void | AddDebugInfo (const std::string &key, const std::string &value, bool sensitive=false) |
| Add debug info entry. | |
| const std::map< std::string, std::string > & | GetDebugInfo () const |
| Get debug info. | |
| virtual | ~Error () |
Protected Member Functions | |
| Error (const std::string &message, const std::string &name, ErrorType type) | |
| Error (const std::string &message, const std::map< std::string, std::string > debugInfo, const std::map< std::string, std::string > sensitiveDebugInfo, const std::string &name, ErrorType type) | |
Protected Attributes | |
| std::string | mMessage |
| std::map< std::string, std::string > | mDebugInfo |
| std::string | mName |
| ErrorType | mType |
Private Member Functions | |
| std::string | CreateFormattedMessage (const std::string &message) const |
Private Attributes | |
| std::string | mFormattedMessage |
| std::string | mMaskedMessage |
Base class for all errors that will be reported (thrown or returned) from MIP SDK.
|
inlinevirtual |
|
inlineexplicitprotected |
|
inlineexplicitprotected |
|
inline |
Add debug info entry.
| key | Debug info key |
| value | Debug info value |
|
pure virtual |
Clone the error.
Implemented in AccessDeniedError, AdhocProtectionRequiredError, BadInputError, ConsentDeniedError, ContentFormatNotSupportedError, CustomerKeyUnavailableError, DelegateResponseError, DeprecatedApiError, FileIOError, InsufficientBufferError, InternalError, JustificationRequiredError, LabelDisabledError, LabelNotFoundError, LicenseNotRegisteredError, MaxDepthReachedError, NetworkError, NoAuthTokenError, NoPermissionsError, NoPermissionsExtendedError, NoPolicyError, NotSupportedError, OperationCancelledError, PrivilegedRequiredError, ProxyAuthenticationError, ServiceDisabledError, TemplateArchivedError, and TemplateNotFoundError.
|
inlineprivate |
|
inline |
Get debug info.
|
inline |
Get the error name.
|
inlinevirtual |
Get the error type.
Reimplemented in ContentFormatNotSupportedError, CustomerKeyUnavailableError, DelegateResponseError, InsufficientBufferError, LabelDisabledError, LabelNotFoundError, LicenseNotRegisteredError, NoAuthTokenError, NoPermissionsError, ProxyAuthenticationError, ServiceDisabledError, TemplateArchivedError, and TemplateNotFoundError.
|
inline |
Get the error message.
|
inline |
Set the error message.
| msg | the error message. |
|
inlineoverridenoexcept |
Get the error message.
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
protected |