Handle errors with the com.informix.jdbc.Message class
HCL 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 the 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.