---
title: KmlIssGetErrorText
description: "获得用户可读的最后错误描述，但该功能还未实现，返回的text为空。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0851.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0851.html
indexId: 12c11eefaa1afd82d43238aa2a0c210bae91e88b8e964a37cc68ceb56651216c61
---
# KmlIssGetErrorText

获得用户可读的最后错误描述，但该功能还未实现，返回的text为空。

#### 接口定义

C Interface：

int KmlIssGetErrorText(KmlSolverTask **handle, char *text, int textSize);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| handle | KmlSolverTask \*\* | 求解器句柄，传入之前步骤的变量。 | 输入/输出 |
| text | char \* | 存储错误文本信息。 | 输入/输出 |
| textSize | int | 文本大小。 | 输入 |


#### 返回值

| 返回值 | 类型 | 描述 |
| --- | --- | --- |
| NO\_ERROR | int | 正常执行。 |
| NONZERO\_INDEXING | int | 非零索引。 |
| NO\_DIAGONAL\_ELEMENT | int | 无对角元素。 |
| ZERO\_DIAGONAL\_ELEMENT | int | 对角线元素为零。 |
| NO\_MEMORY | int | 内存不足。 |
| BAD\_HANDLE | int | handle错误。 |
| OUT\_OF\_EXECUTION\_ORDER | int | 错误的执行顺序。 |
| INCONSISTENT\_PERMUTATION | int | 不一致的排列。 |
| KML\_SOLVER\_INVALID\_ARGUMENT | int | 无效的参数。 |
| NOT\_IMPLEMENTED | int | 未执行。 |


#### 依赖

#include "kml_iss.h"


#### 示例

C Interface：


```
KmlSolverTask *handle
    int n = 8;   
    double a[26] = {1.0, 1.0, 2.0, 9.0, 2.0, 1.0, -3.0, 2.0, 3.0, 2.0, 1.0, 1.0, 9.0, -5.0, 2.0, 6.0, 1.0, -3.0, 1.0, 4.0, 1.0, -5.0, 7.0, 2.0,\
                     1.0, 2.0};
    int ja[26] = {0, 3, 4, 1, 2, 3, 5, 1, 2, 7, 0, 1, 3, 6, 0, 4, 5, 1, 4, 5, 7, 3, 6, 2, 5, 7};
    int ia[9] = {0, 3, 7, 10, 14, 17, 21, 23, 26};

    char *text;
    int textSize;  
    int ierr;
    ierr = KmlIssGcrInitDI(&handle, n, a, ja, ia);
    ierr = KmlIssGetError(&handle,text,textSize);
```
