desc
is the MI_ERROR_DESC structure that describes an SQL error or warning.
Yes
For more information about return values, see "Client Errors".
Return Values On success, returns the exception level; on failure, returns MI_ERROR. If the exception was an MI_Client_Library_Error, the possible return values are MI_LIB_BADARG, MI_LIB_USAGE, MI_LIB_INTERR, MI_LIB_NOIMP, MI_LIB_DROPCONN, and MI_LIB_BADSERV. Otherwise, the possible exception levels are MI_MESSAGE and MI_EXCEPTION. Related Topics For additional information, see the descriptions of the following functions: mi_errmsg(), mi_error_desc_copy(), mi_error_desc_is_copy(), mi_error_desc_destroy(), mi_error_sql_state(), and mi_error_sqlcode().