33#ifndef API_MIP_DELEGATE_RESPONSE
34#define API_MIP_DELEGATE_RESPONSE
53 return response.mReserved;
70 throw std::invalid_argument(
"Created an empty DelegateResponse");
81 throw std::invalid_argument(
"Created an empty DelegateResponse");
94 throw std::invalid_argument(
"Created an empty DelegateResponse");
110 std::shared_ptr<mip::DelegateResponseError>
GetError()
const {
Base class for all DelegateResponse classes.
Delegate Response Error. Thrown or returned in response to encountering an error in a delegate method...
Template class to return delegate operation results.
std::shared_ptr< mip::DelegateResponseError > mDelegateResponseError
std::shared_ptr< T > GetData() const
Returns the requested data, nullptr if call triggered an exception.
DelegateResponse(const std::exception_ptr &exception)
Create a DelegateResponse to wrap returned objects or exceptions.
std::shared_ptr< T > mData
std::shared_ptr< mip::DelegateResponseError > GetError() const
Return any error generated during the call, nullptr if call completed successfully.
DelegateResponse(mip::Error &error)
Create a DelegateResponse to wrap returned objects or exceptions.
DelegateResponse(std::shared_ptr< T > data)
Create a DelegateResponse to wrap returned objects or exceptions.
A file containing the MIP SDK error types.