Client-Library messages are generated in response to Client-Library errors and other conditions of interest. Each Client-Library message includes a number, text, and severity level.
Return codes are symbolic values that indicate success, failure, or other conditions of interest. All Client-Library routines use return codes.
Generally speaking, when a Client-Library routine returns CS_FAIL, Client-Library generates a message, but Client-Library can also generate messages at other times.
Applications need to handle messages in addition to checking return codes.