Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
Loading...
Searching...
No Matches
DelegateResponseError Class Reference

Delegate Response Error. Thrown or returned in response to encountering an error in a delegate method. More...

#include <error.h>

Inheritance diagram for DelegateResponseError:
Error

Public Member Functions

 DelegateResponseError (const std::exception_ptr &except)
 Creates an error/exception object. Call this method from a MIP delegate function to create a MIP or standard C++ exception object.
 
 DelegateResponseError (const std::string &message, const std::string &stackTrace, const std::string &name="DelegateResponseError")
 Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.
 
 DelegateResponseError (const std::string &message, long HResult, const std::string &stackTrace, const std::string &name="DelegateResponseError")
 Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.
 
 DelegateResponseError (const std::string &message, long HResult)
 Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.
 
 DelegateResponseError (const std::string &message)
 Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.
 
- Public Member Functions inherited from Error
char const * what () const noexcept override
 Get the error message.
 
virtual std::shared_ptr< ErrorClone () 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.
 

Additional Inherited Members

- Public Attributes inherited from Error
std::string mMessage
 
std::map< std::string, std::string > mDebugInfo
 
std::string mName
 
ErrorType mType
 

Detailed Description

Delegate Response Error. Thrown or returned in response to encountering an error in a delegate method.

Constructor & Destructor Documentation

◆ DelegateResponseError() [1/5]

DelegateResponseError::DelegateResponseError ( const std::exception_ptr & except)
inlineexplicit

Creates an error/exception object. Call this method from a MIP delegate function to create a MIP or standard C++ exception object.

Parameters
exceptThe C++ exception that was encountered.

◆ DelegateResponseError() [2/5]

DelegateResponseError::DelegateResponseError ( const std::string & message,
const std::string & stackTrace,
const std::string & name = "DelegateResponseError" )
inline

Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.

Parameters
messageMessage associated with the exception.
stackTraceThe stack trace at the time of the exception.
nameSome string to uniquely identify the type of this exception.

◆ DelegateResponseError() [3/5]

DelegateResponseError::DelegateResponseError ( const std::string & message,
long HResult,
const std::string & stackTrace,
const std::string & name = "DelegateResponseError" )
inline

Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.

Parameters
messageMessage associated with the exception.
HResultHResult that identifies the error that caused this exception.
stackTraceThe stack trace at the time of the exception.
nameSome string to uniquely identify the type of this exception.

◆ DelegateResponseError() [4/5]

DelegateResponseError::DelegateResponseError ( const std::string & message,
long HResult )
inline

Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.

Parameters
messageMessage associated with the exception.
HResultHResult that identifies the error that caused this exception.

◆ DelegateResponseError() [5/5]

DelegateResponseError::DelegateResponseError ( const std::string & message)
inline

Creates an error/exception object. Call this method from a MIP delegate function to create a generic MIP C++ exception object.

Parameters
messageMessage associated with the exception.

The documentation for this class was generated from the following file: