|
|||||||||
| Home >> All >> org >> scopemvc >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.scopemvc.util
Class LocalizedException

java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.scopemvc.util.LocalizedException
- All Implemented Interfaces:
- java.io.Serializable
- public class LocalizedException
- extends java.lang.Exception
An Exception that implements getLocalizedMessage() 55 by
looking up its message as an ID that is looked up in
UIStrings to present the user with
a localised message: message parameters passed in are
substituted in the message as java.text.MessageFormat.
- Version:
- $Revision: 1.3 $ $Date: 2002/01/26 09:46:20 $
| Nested Class Summary |
| Nested classes inherited from class java.lang.Throwable |
|
| Field Summary | |
private static org.apache.commons.logging.Log |
LOG
|
private java.lang.Object[] |
messageParameters
|
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
| Constructor Summary | |
LocalizedException(java.lang.String inMessageID)
Create with a message id, but no message parameters. |
|
LocalizedException(java.lang.String inMessageID,
java.lang.Object inMessageParameter)
Create with a message id and one message parameter. |
|
LocalizedException(java.lang.String inMessageID,
java.lang.Object[] inMessageParameters)
Create with a message id and message parameters. |
|
| Method Summary | |
java.lang.String |
getLocalizedMessage()
Use the message as an ID to a message pattern in the UIStrings and use java.text.MessageFormat to format it with the message parameters. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
LOG
private static final org.apache.commons.logging.Log LOG
messageParameters
private java.lang.Object[] messageParameters
| Constructor Detail |
LocalizedException
public LocalizedException(java.lang.String inMessageID)
- Create with a message id, but no message parameters.
LocalizedException
public LocalizedException(java.lang.String inMessageID, java.lang.Object inMessageParameter)
- Create with a message id and one message parameter.
LocalizedException
public LocalizedException(java.lang.String inMessageID, java.lang.Object[] inMessageParameters)
- Create with a message id and message parameters.
| Method Detail |
getLocalizedMessage
public final java.lang.String getLocalizedMessage()
- Use the message as an ID to a message pattern in the
UIStrings
and use java.text.MessageFormat to format it
with the message parameters.
|
|||||||||
| Home >> All >> org >> scopemvc >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC