Microsoft Information Protection (MIP) SDK for C++: Reference 1.16
Doxygen-generated documentation for MIP SDK written in C++
|
Base class for all errors that will be reported (thrown or returned) from MIP SDK. More...
#include <src/api/mip/error.h>
Public Member Functions | |
void | AddDebugInfo (const std::string &key, const std::string &value, bool sensitive=false) |
Add debug info entry. | |
virtual std::shared_ptr< Error > | Clone () const =0 |
Clone the error. | |
const std::map< std::string, std::string > & | GetDebugInfo () const |
Get debug info. | |
const std::string & | GetErrorName () const |
Get the error name. | |
virtual ErrorType | GetErrorType () const |
Get the error type. | |
const std::string & | GetMessage (bool maskPII=false) const |
Get the error message. | |
void | SetMessage (const std::string &msg) |
Set the error message. | |
char const * | what () const noexcept override |
Get the error message. | |
Public Attributes | |
std::map< std::string, std::string > | mDebugInfo |
std::string | mMessage |
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.
|
inline |
Add debug info entry.
key | Debug info key |
value | Debug info value |
Definition at line 179 of file error.h.
References mDebugInfo, mFormattedMessage, and mMaskedMessage.
Referenced by NoPermissionsExtendedError::AddExtendedErrorInfoToDebugInfo(), DelegateResponseError::DelegateResponseError(), DelegateResponseError::DelegateResponseError(), and DelegateResponseError::DelegateResponseError().
|
pure virtual |
|
inlineprivate |
Definition at line 230 of file error.h.
|
inline |
Get debug info.
Definition at line 192 of file error.h.
References mDebugInfo.
|
inline |
|
inlinevirtual |
|
inline |
Get the error message.
Definition at line 151 of file error.h.
References mFormattedMessage, and mMaskedMessage.
|
inline |
Set the error message.
msg | the error message. |
Definition at line 160 of file error.h.
References mFormattedMessage, mMaskedMessage, and mMessage.
|
inlineoverridenoexcept |
Get the error message.
Definition at line 121 of file error.h.
References mFormattedMessage.
std::map<std::string, std::string> Error::mDebugInfo |
Definition at line 225 of file error.h.
Referenced by AddDebugInfo(), and GetDebugInfo().
|
private |
Definition at line 240 of file error.h.
Referenced by AddDebugInfo(), GetMessage(), SetMessage(), and what().
|
private |
Definition at line 241 of file error.h.
Referenced by AddDebugInfo(), GetMessage(), and SetMessage().
std::string Error::mMessage |
Definition at line 224 of file error.h.
Referenced by DelegateResponseError::DelegateResponseError(), and SetMessage().
std::string Error::mName |
Definition at line 226 of file error.h.
Referenced by GetErrorName().
ErrorType Error::mType |
Definition at line 227 of file error.h.
Referenced by GetErrorType().