|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.loom.exception.LocaleAwareException
public class LocaleAwareException
Locale-dependent exceptions. This may be handled as validation errors if there is a source form.
| Constructor Summary | |
|---|---|
LocaleAwareException(Message message)
This constructor receives the i18n message to display to the user. |
|
LocaleAwareException(java.lang.String messageKey)
Note that this constructor will display a meaningless message (the message key and params) if there is no |
|
LocaleAwareException(java.lang.String message,
java.lang.String messageKey)
Deprecated. use LocaleAwareException(String) instead |
|
LocaleAwareException(java.lang.String message,
java.lang.String messageKey,
java.lang.Throwable cause)
Deprecated. use LocaleAwareException(String, Throwable) instead |
|
LocaleAwareException(java.lang.String messageKey,
java.lang.Throwable cause)
Note that this constructor will display a meaningless message (the message key and params) if there is no |
|
| Method Summary | |
|---|---|
LocaleAwareException |
addArg(java.lang.String arg,
java.lang.Object value)
|
LocaleAwareException |
addTranslatedArg(java.lang.String arg,
java.lang.Object value)
|
java.util.Map<java.lang.String,java.lang.Object> |
getArgs()
|
Message |
getLocaleAwareMessage()
|
java.lang.String |
getMessage()
|
java.lang.String |
getMessageKey()
|
java.util.Map<java.lang.String,java.lang.Object> |
getTranslatedArgs()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, 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 LocaleAwareException(java.lang.String message,
java.lang.String messageKey,
java.lang.Throwable cause)
LocaleAwareException(String, Throwable) instead
message - the message to be printed in logs and where the current locale cannot be resolvedmessageKey - the key of the message to be looked for in the current MessagesRepository instancecause - the cause of this exception
public LocaleAwareException(java.lang.String message,
java.lang.String messageKey)
LocaleAwareException(String) instead
message - the message to be printed in logs and where the current locale cannot be resolvedmessageKey - the key of the message to be looked for in the current MessagesRepository instancepublic LocaleAwareException(java.lang.String messageKey)
messageKey - the key of the message to be looked for in the current MessagesRepository instance
public LocaleAwareException(java.lang.String messageKey,
java.lang.Throwable cause)
messageKey - the key of the message to be looked for in the current MessagesRepository instancecause - the cause of this exceptionpublic LocaleAwareException(Message message)
MessagesRepository instance available.
message - the message to be printed in logs and where the current locale cannot be resolved| Method Detail |
|---|
public Message getLocaleAwareMessage()
getLocaleAwareMessage in interface LocaleAwareThrowable
public LocaleAwareException addArg(java.lang.String arg,
java.lang.Object value)
public LocaleAwareException addTranslatedArg(java.lang.String arg,
java.lang.Object value)
public java.util.Map<java.lang.String,java.lang.Object> getArgs()
public java.lang.String getMessageKey()
public java.util.Map<java.lang.String,java.lang.Object> getTranslatedArgs()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||