ERR_QUIT()

Prints in the error line the text corresponding to an error number and terminates the program.

Syntax

ERR_QUIT(
   errnum INTEGER )
  1. errnum is a runtime error or an Informix® SQL error.

Usage

The ERR_QUIT() function prints the error message corresponding to the number passed as parameter. The message will be displayed in standard error stream and the program will terminate.

IBM® Informix SQL error numbers can only be supported if the program is connected to an Informix database. Do not use this function when programming an application that must run with different type of database servers.