Sending extended error data to a client

An Open Server application sets the CS_HASEED bit of the status field of the CS_SERVERMSG structure if extended error data is available for the message.

An Open Server application sends extended error data as parameters to the srv_sendinfo routine. The application describes, binds, and sends the error parameters using the srv_descfmt, srv_bind, and srv_xferdata routines, respectively.

The application must describe, bind, and send the error parameters immediately after calling srv_sendinfo, before sending other results and before calling to srv_senddone. The application must invoke srv_descfmt, srv_bind and srv_xferdata with a type argument of SRV_ERRORDATA.

If an application calls srv_sendinfo with the status field of the CS_SERVERMSG structure set to CS_HASEED but fails to send error parameters, Open Server raises a fatal process error when the application calls srv_senddone.