Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
|
Bad input error, thrown when the input to an SDK API is invalid. More...
#include <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 | |
ErrorCode | GetErrorCode () const |
Gets the errorCode of bad input. | |
![]() | |
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. | |
Private Member Functions | |
const std::string & | GetErrorCodeString (ErrorCode code) const |
Private Attributes | |
ErrorCode | mErrorCode |
Additional Inherited Members | |
![]() | |
std::string | mMessage |
std::map< std::string, std::string > | mDebugInfo |
std::string | mName |
ErrorType | mType |
Bad input error, thrown when the input to an SDK API is invalid.
|
strong |
ErrorCode of bad input error.
|
inline |
Gets the errorCode of bad input.
|
inlineprivate |
|
private |