First page Back Continue Last page Graphics

Storing Error Messages as Resources


Storing Error Messages as Resources

Typically, you store error messages in a resource bundle or other property file to facilitate translation and reuse of messages. A resource bundle contains key-value pairs for any messages and data strings in your application that you want to translate or reuse.

To use an existing message or create a new stored message, perform the following steps:

1. Click the Select Message button to display the Select Text Resource dialog box.

2. To use an existing message, select it and click OK. To create a new message, click New.

3. In the Create Text Resource dialog box, enter the message in the Value text box. This automatically populates the Key field, but you can change the key to a more meaningful name if desired. You can optionally enter a description, which assists the translator in knowing how the message is to be used. Click Save and Select to store and use the message.