Microsoft Information Protection (MIP) SDK for C++: Reference 1.16
Doxygen-generated documentation for MIP SDK written in C++
|
Content Format is not supported. More...
#include <src/api/mip/error.h>
Public Types | |
enum class | ErrorCode { General = 0 , FileIsTooLargeForProtection = 1 , ParameterParsing = 2 , LicenseNotTrusted = 3 , DoubleKey = 4 , FileFormatNotSupported = 5 } |
ErrorCode of bad input error. More... | |
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. | |
ErrorCode | GetErrorCode () const |
Gets the errorCode of bad input. | |
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 |
const std::string & | GetErrorCodeString (ErrorCode code) const |
Private Attributes | |
ErrorCode | mErrorCode |
std::string | mFormattedMessage |
std::string | mMaskedMessage |
|
stronginherited |
ErrorCode of bad input error.
Definition at line 253 of file error.h.
|
inlineinherited |
Add debug info entry.
key | Debug info key |
value | Debug info value |
Definition at line 179 of file error.h.
References Error::mDebugInfo, Error::mFormattedMessage, and Error::mMaskedMessage.
Referenced by NoPermissionsExtendedError::AddExtendedErrorInfoToDebugInfo(), DelegateResponseError::DelegateResponseError(), DelegateResponseError::DelegateResponseError(), and DelegateResponseError::DelegateResponseError().
|
pure virtualinherited |
|
inlineprivateinherited |
Definition at line 230 of file error.h.
|
inlineinherited |
Get debug info.
Definition at line 192 of file error.h.
References Error::mDebugInfo.
|
inlineinherited |
Gets the errorCode of bad input.
Definition at line 293 of file error.h.
References BadInputError::mErrorCode.
|
inlineprivateinherited |
Definition at line 298 of file error.h.
References BadInputError::DoubleKey, BadInputError::FileFormatNotSupported, BadInputError::FileIsTooLargeForProtection, BadInputError::General, BadInputError::LicenseNotTrusted, and BadInputError::ParameterParsing.
|
inlineinherited |
Get the error name.
Definition at line 144 of file error.h.
References Error::mName.
|
inlinevirtualinherited |
Get the error type.
Definition at line 137 of file error.h.
References Error::mType.
|
inlineinherited |
Get the error message.
Definition at line 151 of file error.h.
References Error::mFormattedMessage, and Error::mMaskedMessage.
|
inlineinherited |
Set the error message.
msg | the error message. |
Definition at line 160 of file error.h.
References Error::mFormattedMessage, Error::mMaskedMessage, and Error::mMessage.
|
inlineoverridenoexceptinherited |
Get the error message.
Definition at line 121 of file error.h.
References Error::mFormattedMessage.
|
inherited |
Definition at line 225 of file error.h.
Referenced by Error::AddDebugInfo(), and Error::GetDebugInfo().
|
privateinherited |
Definition at line 296 of file error.h.
Referenced by BadInputError::GetErrorCode().
|
privateinherited |
Definition at line 240 of file error.h.
Referenced by Error::AddDebugInfo(), Error::GetMessage(), Error::SetMessage(), and Error::what().
|
privateinherited |
Definition at line 241 of file error.h.
Referenced by Error::AddDebugInfo(), Error::GetMessage(), and Error::SetMessage().
|
inherited |
Definition at line 224 of file error.h.
Referenced by DelegateResponseError::DelegateResponseError(), and Error::SetMessage().
|
inherited |
Definition at line 226 of file error.h.
Referenced by Error::GetErrorName().
|
inherited |
Definition at line 227 of file error.h.
Referenced by Error::GetErrorType().