OpenAPI User Guide > OpenAPI User Guide > OpenAPI Data Types > OpenAPI Data Structures > IIAPI_SVR_ERRINFO Data Type--Describe Additional Server Information Associated with Error Messages
Was this helpful?
IIAPI_SVR_ERRINFO Data Type--Describe Additional Server Information Associated with Error Messages
The IIAPI_SVR_ERRINFO data type contains additional server-specific information that was received along with an error, warning, or user message.
This data type has the following syntax:
typedef struct _IIAPI_SVR_ERRINFO
{
       II_LONG svr_id_error;
       II_LONG svr_local_error;
       II_LONG svr_id_server;
       II_LONG svr_server_type;
       II_LONG svr_severity;
       II_INT2 svr_parmCount;
       II_API_DESCRIPTOR *svr_parmDescr;
       II_API_DATAVALUE *svr_parmValue;
} IIAPI_SVR_ERRINFO;
This data type has the following parameters:
svr_id_error
Specifies the generic error code or encoded SQLSTATE of the message.
svr_local_error
Specifies the server specific error code.
svr_id_server
Specifies the ID of the server.
svr_server_type
Specifies the type of the server.
svr_severity
Specifies the message type. Valid values can be a combination of the following:
IIAPI_SVR_DEFAULT
IIAPI_SVR_MESSAGE
IIAPI_SVR_WARNING
IIAPI_SVR_FORMATTED
svr_parmCount
Specifies the number of message parameters.
svr_parmDescr
Specifies the description of the message parameters. The memory for this parameter is managed by the OpenAPI.
Note:  For more information, see Output Parameters Allocated by OpenAPI on page 3.
svr_parmValue
Specifies the value of the message parameters. The memory for this parameter is managed by the OpenAPI.
Note:  For more information, see Output Parameters Allocated by OpenAPI on page 3.
Last modified date: 11/28/2023