|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.scopemvc.util.LocalizedException
An Exception that implements getLocalizedMessage() 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.
| 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 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 |
| Constructor Detail |
public LocalizedException(java.lang.String inMessageID)
inMessageID - a message ID that identifies the localised
user-readable message in UIStrings
public LocalizedException(java.lang.String inMessageID,
java.lang.Object inMessageParameter)
inMessageID - a message ID that identifies the localised
user-readable message in UIStringsinMessageParameter - one parameter to be substituted in the message
as MessageFormat
public LocalizedException(java.lang.String inMessageID,
java.lang.Object[] inMessageParameters)
inMessageID - a message ID that identifies the localised
user-readable message in UIStringsinMessageParameters - a set of parameters to be substituted in the
message as MessageFormat| Method Detail |
public final java.lang.String getLocalizedMessage()
UIStrings and use MessageFormat to format it with the message parameters.
getLocalizedMessage in class java.lang.Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||