|
Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
|
Delegate Response Error. More...
#include <src/api/mip/error.h>
Inheritance diagram for DelegateResponseError:
Collaboration diagram for DelegateResponseError: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. | |
| DelegateResponseError (const std::exception_ptr &except) | |
| Creates an error/exception object. | |
| DelegateResponseError (const std::string &message) | |
| Creates an error/exception object. | |
| DelegateResponseError (const std::string &message, const std::string &stackTrace, const std::string &name="DelegateResponseError") | |
| Creates an error/exception object. | |
| DelegateResponseError (const std::string &message, long HResult) | |
| Creates an error/exception object. | |
| DelegateResponseError (const std::string &message, long HResult, const std::string &stackTrace, const std::string &name="DelegateResponseError") | |
| Creates an error/exception object. | |
| 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 |
Delegate Response Error.
Thrown or returned in response to encountering an error in a delegate method.
|
inlineexplicit |
Creates an error/exception object.
Call this method from a MIP delegate function to create a MIP or standard C++ exception object.
| except | The C++ exception that was encountered. |
Definition at line 323 of file error.h.
References Error::mMessage.
|
inline |
Creates an error/exception object.
Call this method from a MIP delegate function to create a generic MIP C++ exception object.
| message | Message associated with the exception. |
| stackTrace | The stack trace at the time of the exception. |
| name | Some string to uniquely identify the type of this exception. |
Definition at line 345 of file error.h.
References Error::AddDebugInfo(), and anonymous_namespace{error.h}::GetStackTraceString().
|
inline |
Creates an error/exception object.
Call this method from a MIP delegate function to create a generic MIP C++ exception object.
| message | Message associated with the exception. |
| HResult | HResult that identifies the error that caused this exception. |
| stackTrace | The stack trace at the time of the exception. |
| name | Some string to uniquely identify the type of this exception. |
Definition at line 362 of file error.h.
References Error::AddDebugInfo(), anonymous_namespace{error.h}::GetHResultString(), and anonymous_namespace{error.h}::GetStackTraceString().
|
inline |
Creates an error/exception object.
Call this method from a MIP delegate function to create a generic MIP C++ exception object.
| message | Message associated with the exception. |
| HResult | HResult that identifies the error that caused this exception. |
Definition at line 381 of file error.h.
References Error::AddDebugInfo(), and anonymous_namespace{error.h}::GetHResultString().
|
inline |
|
inlineinherited |
Add debug info entry.
| key | Debug info key |
| value | Debug info value |
Definition at line 179 of file error.h.
References Error::mDebugInfo.
Referenced by DelegateResponseError(), DelegateResponseError(), and DelegateResponseError().
|
pure virtualinherited |
|
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 |
|
inlineinherited |
Set the error message.
| msg | the error message. |
Definition at line 160 of file error.h.
References Error::mMessage.
|
inlineoverridenoexceptinherited |
|
inherited |
Definition at line 225 of file error.h.
Referenced by Error::AddDebugInfo(), and Error::GetDebugInfo().
|
inherited |
Definition at line 224 of file error.h.
Referenced by 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().