|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MathThrowable
Interface for commons-math throwables.
| Method Summary | |
|---|---|
void |
addMessage(Localizable pattern,
Object... arguments)
Sets a message. |
Object |
getContext(String key)
Gets the value associated to the given context key. |
Set<String> |
getContextKeys()
Gets all the keys stored in the exception |
String |
getLocalizedMessage()
Gets the message in the system default locale. |
String |
getMessage()
Gets the message in a conventional US locale. |
String |
getMessage(Locale locale)
Gets the message in a specified locale. |
void |
setContext(String key,
Object value)
Sets the context (key, value) pair. |
| Method Detail |
|---|
void addMessage(Localizable pattern,
Object... arguments)
pattern - Message pattern.arguments - Values for replacing the placeholders in the message
pattern.
void setContext(String key,
Object value)
key - Context key (not null).value - Context value.Object getContext(String key)
key - Context key.
null if the key does not exist.Set<String> getContextKeys()
String getMessage(Locale locale)
locale - Locale in which the message should be translated
String getMessage()
String getLocalizedMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||