org.chwf.i18n
Class RuntimeMessageException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.chwf.i18n.RuntimeMessageException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConversionConfigurationException, FilterException, ResourceInitException, ValidationException

public class RuntimeMessageException
extends java.lang.RuntimeException

An internationalizable exception. It is intended for late initialization of locale. The message is stored in Message object, which has the exception class as its context class.

Author:
Paul Strack
See Also:
Serialized Form

Constructor Summary
RuntimeMessageException(java.lang.String key, java.lang.Object[] arguments)
          Constructor for RuntimeMessageException.
 
Method Summary
 java.lang.String getMessage()
          Get the message with argument values inserted.
 java.lang.String toString()
          Exception name plus the message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuntimeMessageException

public RuntimeMessageException(java.lang.String key,
                               java.lang.Object[] arguments)
Constructor for RuntimeMessageException.

Parameters:
key - The key used for message lookup. If lookup fails, the key is used as the message pattern, following the rules of MessageFormat
arguments - The arguments for the pattern.
Method Detail

getMessage

public java.lang.String getMessage()
Get the message with argument values inserted.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The formatted message.

toString

public java.lang.String toString()
Exception name plus the message.

Overrides:
toString in class java.lang.Throwable
Returns:
The string value of the exception.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.