GetErrorCode

Function Usage

Obtains and returns recorded error codes in pairs.

This API works in a pair with SetErrorCode, and must be called after Synchronize.

Prototype

1
std::pair<APP_ERROR, APP_ERROR> AscendStream::GetErrorCode();

Response Parameters

Data Structure

Description

std::pair<APP_ERROR, APP_ERROR>

Returns the recorded error code pair. The first field indicates the error code recorded for the first time, and the second field indicates the error code recorded for the last time.