AddErrorInfo

Function Usage

Adds the error information of the plugin to metadata by using the plugin name as the key.

Prototype

1
APP_ERROR MxpiMetadataManager::AddErrorInfo(const std::string pluginName, MxpiErrorInfo errorInfo);

Parameters

Parameter

Description

pluginName

Plugin name

errorInfo

Error information of the plugin. For details, see MxpiErrorInfo.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.