Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains detailed information about why an error occurred.
Members
GetReason
Syntax: public inline TReason GetReason ( );
Gets the reason for the error.
Returns
Enumeration for the error
GetErrorCode
Syntax: public inline int GetErrorCode ( );
Gets the error code.
Returns
The error code
GetMessage
Syntax: public inline std::string GetMessage ( );
The error message in case of an unsuccessful recognition (Reason is set to Error).
Returns
The error message with further information
GetMessage
Syntax: public template< > inline AI::Core::_detail::enable_if_w_or_string_t< T > GetMessage ( );
The error message in case of an unsuccessful recognition (Reason is set to Error).
Returns
The error message.
FromEventArgs
Syntax: public inline static std::shared_ptr< TDetails > FromEventArgs ( const TEventArgs & args );
Creates an instance of the correct ErrorDetails object from the event arguments.
Parameters
argsThe event arguments.
Returns
A shared pointer to CancellationDetails.
FromResult
Syntax: public inline static std::shared_ptr< TDetails > FromResult ( std::shared_ptr< TResult > result );
Creates an instance of the correct ErrorDetails object from the event args.
Parameters
resultThe result that was canceled.
Returns
A shared pointer to CancellationDetails.