---
title: GE_ERRORNO
description: "- GE_ERRORNO"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0138.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0138.html
indexId: 44a8928361460651a064cef632106362ad8f79744e22a0946f05c67d611e086a72
---
# GE_ERRORNO

- GE_ERRORNO
  错误码及描述注册宏，该宏对外提供了SUCCESS和FAILED两个错误，供用户使用：

  GE_ERRORNO(0, 0, 0, 0, 0, SUCCESS, 0, "success");

  GE_ERRORNO(0b11, 0b11, 0b111, 0xFF, 0b11111, FAILED, 0xFFF, "failed");


- GE_ERRORNO_DEFINE
  错误码定义宏，该宏对外提供了END_OF_SEQUENCE错误，供用户使用：

  GE_ERRORNO_DEFINE(0b01, 0b01, 0b000, 8, 0, END_OF_SEQUENCE, 7);

- GE_ERRORNO_EXTERNAL
  错误码及其错误描述信息宏，name是uint32_t类型，desc是std::string类型：

  GE_ERRORNO_EXTERNAL(ACL_ERROR_GE_PARAM_INVALID, "Parameter invalid.");
