Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » UltraLite - C and C++ Programming » Application development » UltraLite C++ application development using embedded SQL » Adding synchronization to your application

 

Synchronization communications errors

The following code illustrates how to handle communications errors from embedded SQL applications:

if( psqlca->sqlcode == SQLE_MOBILINK_COMMUNICATIONS_ERROR ) {
     printf( "  Stream error information:\n"
             "    stream_error_code = %ld\t(ss_error_code)\n"
             "    error_string      = \"%s\"\n"
             "    system_error_code = %ld\n",
     (long)info.stream_error.stream_error_code,
     info.stream_error.error_string,
     (long)info.stream_error.system_error_code );
}

SQLE_MOBILINK_COMMUNICATIONS_ERROR is the general error code for communications errors.

To keep UltraLite small, the runtime reports numbers rather than messages.