---
title: GetRetCode
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefc_23_00045.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefc_23_00045.html
indexId: 09d265d4266076fa71e4a3a6013f16af70c4d483fbec11c5d4384d1ce2f7753f71
---
# GetRetCode

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


#### 函数功能

获取输入FlowMsg消息中的错误码。


#### 函数原型

```
int32_t GetRetCode() const
```


#### 参数说明

无


#### 返回值

返回FlowMsg消息中的错误码。0表示正常，非0表示异常。


#### 异常处理

无。


#### 约束说明

无。
