SE_stream_get_ext_error

Retrieves extended error information

Usage syntax

LONG SE_stream_get_ext_error
(SE_STREAM stream,
SE_ERROR *error);

Parameters
stream The stream handle
error A pointer to an SE_ERROR structure
Description

SE_stream_get_ext_error returns the low-level error code that was returned from an abnormal termination of the last function call on the specified stream. This call returns either OS level errno values or low-level database error codes.

typedef struct {

  LONG sde_error;                       /* ArcSDE error code */

  LONG ext_error;                       /* DBMS or OS errno code */

  CHAR err_msg1[SE_MAX_MESSAGE_LENGTH]; /* DBMS or SE_ERROR_get_string msg. */

  CHAR err_msg2[SE_MAX_SQL_MESSAGE_LENGTH];
                                        /* Second DBMS error, if applicable */

} SE_ERROR;

Returns

SE_SUCCESS
SE_CONNECTION_IN_USE

SE_CONNECTION_LOCKED

SE_INVALID_POINTER

SE_INVALID_STREAM

SE_NET_FAILURE

SE_SDE_NOT_STARTED