|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.sf.mmm.util.nls.api.AbstractNlsException
net.sf.mmm.util.nls.api.NlsException
public abstract class NlsException
This is an abstract base implementation of a checked exception with real
native language support (NLS).
ATTENTION:
Checked exceptions should be used for business errors and should only occur
in unexpected situations.
NlsThrowable,
Serialized Form| Field Summary | |
|---|---|
private static long |
serialVersionUID
UID for serialization. |
| Fields inherited from interface net.sf.mmm.util.nls.api.NlsObject |
|---|
KEY_ANNOTATION, KEY_ARGUMENT, KEY_CAPACITY, KEY_DEFAULT, KEY_DIRECTORY, KEY_ERROR, KEY_FILE, KEY_FUNCTION, KEY_ID, KEY_KEY, KEY_LOCATION, KEY_MAX, KEY_MIN, KEY_MODE, KEY_NAME, KEY_OBJECT, KEY_OPERAND, KEY_OPERATION, KEY_OPTION, KEY_PATH, KEY_PROPERTY, KEY_QUERY, KEY_RESOURCE, KEY_SIZE, KEY_SOURCE, KEY_TARGET_TYPE, KEY_TITLE, KEY_TYPE, KEY_URI, KEY_VALUE |
| Constructor Summary | |
|---|---|
NlsException(NlsMessage message)
The constructor. |
|
NlsException(String internationalizedMessage,
Map<String,Object> arguments)
The constructor. |
|
NlsException(String internationalizedMessage,
Object... arguments)
Deprecated. use NlsException(String, Map) instead. |
|
NlsException(Throwable nested,
NlsMessage message)
The constructor. |
|
NlsException(Throwable nested,
String internationalizedMessage,
Map<String,Object> arguments)
The constructor. |
|
NlsException(Throwable nested,
String internationalizedMessage,
Object... arguments)
Deprecated. use NlsException(String, Map) instead. |
|
| Method Summary | |
|---|---|
protected static Map<String,Object> |
addToMap(Map<String,Object> map,
String key,
Object value)
This method adds the given arguments to the given Map. |
protected static Map<String,Object> |
toMap(String key1,
Object value1)
This method create a Map for the given arguments. |
protected static Map<String,Object> |
toMap(String key1,
Object value1,
String key2,
Object value2)
This method create a Map for the given arguments. |
protected static Map<String,Object> |
toMap(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3)
This method create a Map for the given arguments. |
| Methods inherited from class net.sf.mmm.util.nls.api.AbstractNlsException |
|---|
createUuid, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getNlsMessage, getUuid, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, toNlsMessage |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.mmm.util.nls.api.NlsThrowable |
|---|
getCause, getStackTrace |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
@Deprecated
public NlsException(String internationalizedMessage,
Object... arguments)
NlsException(String, Map) instead.
internationalizedMessage - is a short description of the problem. It
is used for
internationalization and should be in English language.arguments - are the arguments filled into the
internaitionalizedMessage after nationalization. May be
empty if no variable arguments exist.
@Deprecated
public NlsException(Throwable nested,
String internationalizedMessage,
Object... arguments)
NlsException(String, Map) instead.
nested - is the cause of this exception.internationalizedMessage - is a short description of the problem. It
is used for
internationalization and should be in English language.arguments - are the arguments filled into the
internaitionalizedMessage after nationalization. May be
empty if no variable arguments exist.
public NlsException(String internationalizedMessage,
Map<String,Object> arguments)
internationalizedMessage - is a short description of the problem. It
is used for internationalization and should be in English language.arguments - are the arguments
to be filled into
internationalizedMessage.
public NlsException(Throwable nested,
String internationalizedMessage,
Map<String,Object> arguments)
nested - is the cause of this exception.internationalizedMessage - is a short description of the problem. It
is used for internationalization and should be in English language.arguments - are the arguments
to be filled into
internationalizedMessage.toMap(String, Object, String, Object)public NlsException(NlsMessage message)
message - the message describing the problem
briefly.
public NlsException(Throwable nested,
NlsMessage message)
nested - is the cause of this exception.message - the message describing the problem
briefly.| Method Detail |
|---|
protected static Map<String,Object> addToMap(Map<String,Object> map,
String key,
Object value)
Map.
map - is the Map to use or null to create a new
Map.key - is the key of the entry to add.value - is the value of the entry to add.
map (or a new one if map was
null) after the given entry was added.
protected static Map<String,Object> toMap(String key1,
Object value1)
Map for the given arguments.
key1 - is the key of the first map entry.value1 - is the value of the first map entry.
Map containing only the given arguments.
protected static Map<String,Object> toMap(String key1,
Object value1,
String key2,
Object value2)
Map for the given arguments.
key1 - is the key of the first map entry.value1 - is the value of the first map entry.key2 - is the key of the second map entry.value2 - is the value of the second map entry.
Map containing only the given arguments.
protected static Map<String,Object> toMap(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3)
Map for the given arguments.
key1 - is the key of the first map entry.value1 - is the value of the first map entry.key2 - is the key of the second map entry.value2 - is the value of the second map entry.key3 - is the key of the third map entry.value3 - is the value of the third map entry.
Map containing only the given arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||