AioGetErrorString


Function

Converts error code content to string. This function supports multi-process.

Format

Ret = AioGetErrorString ( ErrorCode , ErrorString )

Parameters

ErrorCode [ C, C++ : long ] [ Python : ctypes.c_long ]
Specifies error code.

ErrorString [ C, C++ : char * ] [ Python : ctypes.c_char_p ]
Specifies the pointer to the buffer for storing string.
Make sure that the size of buffer is greater than 256 bytes.

Return values

Ret [ C, C++ : long ] [ Python : ctypes.c_long ]

Return values

Content

0

Normality completion

10180

Pointer to ErrorString is NULL
Specify the address of variable to parameter.

Remarks

Make sure that the size of buffer for storing string is greater than 256 bytes.

If the device is in operation, this function cannot be performed.

Example

Stores the content of error code 10000 to ErrorString.

C, C++

long Ret;
char ErrorString[256];
Ret = AioGetErrorString ( 10000 , ErrorString );
 

Python

Ret = ctypes.c_long()
ErrorString = ctypes.create_string_buffer(256)
Ret.value = caio.AioGetErrorString ( 10000 , ErrorString )
 

 

Stores the string "The device name which wasn't registered by Configuration Tool was specified." to ErrorString.