---
title: aclrtGetFuncHandleFromExceptionInfo
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/API/runtimeapi/aclcppdevg_03_2141.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/API/runtimeapi/aclcppdevg_03_2141.html
indexId: bb75ac33299aa43aa5d27a6e1fcd163e43e5dcfaf24203ee17004ca96ebb8e6879
---
# aclrtGetFuncHandleFromExceptionInfo

#### 产品支持情况

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


#### 功能说明

从aclrtExceptionInfo异常信息中获取核函数句柄。此接口与aclrtBinarySetExceptionCallback接口配合使用。


#### 函数原型

```
aclError aclrtGetFuncHandleFromExceptionInfo(const aclrtExceptionInfo *info, aclrtFuncHandle *func)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| info | 输入 | 异常信息的指针。 |
| func | 输出 | 核函数句柄。类型定义请参见aclrtFuncHandle。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，请参见aclError。
