|
||||||||||
| 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
net.sf.mmm.util.nls.api.AbstractNlsRuntimeException
net.sf.mmm.util.nls.api.NlsRuntimeException
public abstract class NlsRuntimeException
This the base class for all runtime exceptions of the project.
| 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 | |
|---|---|
NlsRuntimeException(NlsMessage message)
The constructor. |
|
NlsRuntimeException(String internationalizedMessage)
The constructor. |
|
NlsRuntimeException(String internationalizedMessage,
Map<String,Object> arguments)
The constructor. |
|
NlsRuntimeException(String internationalizedMessage,
Object... arguments)
Deprecated. use NlsRuntimeException(String, Map) instead. |
|
NlsRuntimeException(Throwable nested,
NlsMessage message)
The constructor. |
|
NlsRuntimeException(Throwable nested,
String internationalizedMessage)
The constructor. |
|
NlsRuntimeException(Throwable nested,
String internationalizedMessage,
Map<String,Object> arguments)
The constructor. |
|
NlsRuntimeException(Throwable nested,
String internationalizedMessage,
Object... arguments)
Deprecated. use NlsRuntimeException(Throwable, 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.AbstractNlsRuntimeException |
|---|
createUuid, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getNlsMessage, getUuid, 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 NlsRuntimeException(String internationalizedMessage,
Object... arguments)
NlsRuntimeException(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
internationalizedMessage after nationalization.
@Deprecated
public NlsRuntimeException(Throwable nested,
String internationalizedMessage,
Object... arguments)
NlsRuntimeException(Throwable, 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
internationalizedMessage after nationalization.public NlsRuntimeException(String internationalizedMessage)
internationalizedMessage - is a short description of the problem. It
is used for internationalization and should be in English language.
public NlsRuntimeException(Throwable nested,
String internationalizedMessage)
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.
public NlsRuntimeException(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 NlsRuntimeException(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 NlsRuntimeException(NlsMessage message)
message - the message describing the problem
briefly.
public NlsRuntimeException(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 | |||||||||