Search for customized messages
When the mi_db_error_raise( ) function initiates a search of the syserrors system catalog table, it requests the message in which all components of the locale (language, territory, code set, and optional modifier) are the same in the current processing locale and the locale column of syserrors.
For C UDRs that use the default locale, the current processing locale is U.S. English (en_us). When the current processing locale is U.S. English, mi_db_error_raise( ) looks only for messages that use the U.S. English locale. For C UDRs that use nondefault locales, however, the current processing locale is the server-processing locale.
For a description of how mi_db_error_raise( ) searches for messages in the syserrors system catalog table, see the chapter on exceptions in the HCL OneDB™ DataBlade® API Programmer's Guide.