Microsoft Information Protection (MIP) SDK for C++: Reference 1.16
Doxygen-generated documentation for MIP SDK written in C++
|
The user could not get access to the content due to extended Access checks like ABAC. More...
#include <src/api/mip/error.h>
Public Types | |
enum class | Category { Unknown = 0 , UserNotFound = 1 , AccessDenied = 2 , AccessExpired = 3 , InvalidEmail = 4 , UnknownTenant = 5 , NotOwner = 6 , NotPremiumLicenseUser = 7 , ClientVersionNotSupported = 8 } |
Category of no permissions 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. | |
Category | GetCategory () const |
Gets the category of no permissions failure. | |
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. | |
std::string | GetOwner () const |
Gets the owner of the document. | |
std::string | GetReferrer () const |
Gets the contact in case of missing rights to the document. | |
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 | |
void | AddExtendedErrorInfoToDebugInfo (const std::vector< ExtendedErrorInfo > &extendedErrorInfo) |
std::string | CreateFormattedMessage (const std::string &message) const |
const std::string & | GetCategoryString (Category category) const |
Private Attributes | |
Category | mCategory |
std::vector< ExtendedErrorInfo > | mExtendedErrorInfo |
std::string | mFormattedMessage |
std::string | mMaskedMessage |
std::string | mOwner |
std::string | mReferrer |
The user could not get access to the content due to extended Access checks like ABAC.
|
stronginherited |
Category of no permissions error.
Definition at line 677 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 AddExtendedErrorInfoToDebugInfo(), DelegateResponseError::DelegateResponseError(), DelegateResponseError::DelegateResponseError(), and DelegateResponseError::DelegateResponseError().
|
inlineprivate |
Definition at line 813 of file error.h.
References Error::AddDebugInfo(), anonymous_namespace{error.h}::GetErrorInfoCodesKey(), anonymous_namespace{error.h}::GetErrorInfoDetailsKey(), and anonymous_namespace{error.h}::GetErrorInfoMessagesKey().
|
pure virtualinherited |
|
inlineprivateinherited |
Definition at line 230 of file error.h.
|
inlineinherited |
Gets the category of no permissions failure.
Definition at line 755 of file error.h.
References NoPermissionsError::mCategory.
|
inlineprivateinherited |
Definition at line 762 of file error.h.
References NoPermissionsError::AccessDenied, NoPermissionsError::AccessExpired, NoPermissionsError::ClientVersionNotSupported, NoPermissionsError::InvalidEmail, NoPermissionsError::NotOwner, NoPermissionsError::NotPremiumLicenseUser, NoPermissionsError::Unknown, NoPermissionsError::UnknownTenant, and NoPermissionsError::UserNotFound.
|
inlineinherited |
Get debug info.
Definition at line 192 of file error.h.
References Error::mDebugInfo.
|
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 |
Gets the owner of the document.
Definition at line 748 of file error.h.
References NoPermissionsError::mOwner.
|
inlineinherited |
Gets the contact in case of missing rights to the document.
Definition at line 741 of file error.h.
References NoPermissionsError::mReferrer.
|
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.
|
privateinherited |
Definition at line 758 of file error.h.
Referenced by NoPermissionsError::GetCategory().
|
inherited |
Definition at line 225 of file error.h.
Referenced by Error::AddDebugInfo(), and Error::GetDebugInfo().
|
private |
|
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().
|
privateinherited |
Definition at line 760 of file error.h.
Referenced by NoPermissionsError::GetOwner().
|
privateinherited |
Definition at line 759 of file error.h.
Referenced by NoPermissionsError::GetReferrer().
|
inherited |
Definition at line 227 of file error.h.
Referenced by Error::GetErrorType().