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

Public Member Functions | Private Attributes | Static Private Attributes

org::apache::uima::InternationalizedRuntimeException Class Reference

Inheritance diagram for org::apache::uima::InternationalizedRuntimeException:
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 ()
synchronized Throwable initCause (Throwable cause)
 InternationalizedRuntimeException (String aResourceBundleName, String aMessageKey, Object[] aArguments)
 InternationalizedRuntimeException (Throwable aCause)
 InternationalizedRuntimeException (String aResourceBundleName, String aMessageKey, Object[] aArguments, Throwable aCause)
 InternationalizedRuntimeException ()

Private Attributes

Object[] mArguments
Throwable mCause
String mMessageKey
String mResourceBundleName

Static Private Attributes

static final long serialVersionUID = 6387360855459370559L

Detailed Description

The InternationalizedRuntimeException class adds internationalization support to the standard functionality provided by java.lang.RuntimeException. Because this is a RuntimeException, it does not need to be declared in the throws clause of methods.

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 48 of file InternationalizedRuntimeException.java.


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

Generated by  Doxygen 1.6.0   Back to index