public class GlobalError extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_MAPPING_KEY |
| Constructor and Description |
|---|
GlobalError(String messageKey,
Locale locale) |
GlobalError(String messageKey,
String[] properties,
Locale locale)
Use this constructor if the message is a template that contains certain placeholders to be replaced.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
String |
getMessageKey() |
String[] |
getProperties() |
String |
toString() |
public static final String MODEL_MAPPING_KEY
public GlobalError(String messageKey, Locale locale)
messageKey - the key of the error message in the resourceBundle with messagespublic String getMessageKey()
public String[] getProperties()
public String getMessage()
RuntimeException - when the key was not found in the bundleMMBase 1.9-SNAPSHOT - ${javadoctimestamp}