Home | Previous Page | Next Page   Performing Database Operations > Handling Errors >

Handling Errors with the com.informix.jdbc.Message Class

Informix provides the class com.informix.jdbc.Message for retrieving Informix error message text based on the Informix error number. To use this class, call the Java interpreter java directly, passing it an Informix error number, as shown in the following example:

java com.informix.jdbc.Message 100

The example returns the message text for Informix error 100:

100: ISAM error: duplicate value for a record with unique key. 

A positive error number is returned if you specify an unsigned number when using the com.informix.jdbc.Message class. This differs from the finderr utility, which returns a negative error number for an unsigned number.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]