Home | Previous Page | Next Page   Internationalization and Date Formats >

Support for Localized Error Messages

Message text is usually the text of an SQLException object, but can also be an SQLWarn object or any other text output from the driver.

There are two requirements to enable localized message text output, as follows:

Several public classes have constructors that take the current connection object as a parameter so they have access to the CLIENT_LOCALE value. If you want access to non-English error messages, you must use the constructors that include the connection object. Otherwise, any error message text from those classes is in English only. Affected public classes are Interval, IntervalYM, IntervalDF, and IfxLocator. For more information about the constructors to use for these classes, see Working With Informix Types.

For an example of how to use the localized error message support feature, see the locmsg.java program, which is included with IBM Informix JDBC Driver.

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