CMSG_OC_MSGNO

CMSG_OC_MSGNO is an encoded field consisting of 4 bytes:


Byte 1

Byte 1 (the high-order byte) represents the Client-Library layer that is reporting the error. This byte is normally only used by Sybase Technical Support.


Byte 2

Byte 2 represents the message’s origin and is used internally by Sybase.


Byte 3

Byte 3 denotes the severity of the error. The following table describes the possible values.

Table 3-1: Severity values

Value

Meaning

CS_SV_INFORM (0)

No error. The message is informational.

CS_SV_API_FAIL (1)

A Client-Library routine generated an error. This error is typically caused by a bad parameter or calling sequence. The server connection is probably salvageable.

CS_SV_RETRY_FAIL (2)

An operation failed, but it can be retried.

CS_SV_RESOURCE_FAIL (3)

Resource error. This error is typically caused by an allocation error, a lack of file descriptors, or a timeout error. The server connection is probably not salvageable.

CS_SV_CONFIG_FAIL (4)

Configuration error.

CS_SV_COMM_FAIL (5)

Unrecoverable error in the server communication channel. The server connection is not salvageable.

CS_SV_INTERNAL_FAIL (6)

Internal Client-Library error.

CS_SV_FATAL (7)

Serious error. All server connections are unusable.


Byte 4

Byte 4 (the low-order byte) denotes the specific error detected by Client-Library.