Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Public Member Functions | Private Attributes | Static Private Attributes

org::apache::uima::InternationalizedException Class Reference

Inheritance diagram for org::apache::uima::InternationalizedException:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Object[] getArguments ()
Throwable getCause ()
String getLocalizedMessage ()
String getLocalizedMessage (Locale aLocale)
String getMessage ()
String getMessageKey ()
String getResourceBundleName ()
boolean hasMessageKey (String messageKey)
synchronized Throwable initCause (Throwable cause)
 InternationalizedException (Throwable aCause)
 InternationalizedException (String aResourceBundleName, String aMessageKey, Object[] aArguments)
 InternationalizedException ()
 InternationalizedException (String aResourceBundleName, String aMessageKey, Object[] aArguments, Throwable aCause)

Private Attributes

Object[] mArguments
Throwable mCause
String mMessageKey
String mResourceBundleName

Static Private Attributes

static final long serialVersionUID = 2306587442280738385L

Detailed Description

The InternationalizedException class adds internationalization support to the standard functionality provided by java.lang.Exception.

To support internationalization, the thrower of an exception must not specify a hardcoded message string. Instead, the thrower specifies a key that identifies the message. That key is then looked up in a locale-specific ResourceBundle to find the actual message associated with this exception.

This class also supports arguments to messages. The full message will be constructed using the MessageFormat class. For more information on internationalization, see the Java Internationalization Guide.

This version of this class works with JDK versions prior to 1.4, since it does not assume support for exception chaining. The file InternationalizedException.java_1_4 is a version that uses the exception chaining support built-in to JDK1.4.

Definition at line 50 of file InternationalizedException.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index