org.mmbase.applications.vprowizards.spring
Class GlobalError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mmbase.applications.vprowizards.spring.GlobalError
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FieldError
public class GlobalError
- extends RuntimeException
- See Also:
- Serialized Form
MODEL_MAPPING_KEY
public static final String MODEL_MAPPING_KEY
- See Also:
- Constant Field Values
GlobalError
public GlobalError(String messageKey,
Locale locale)
- Parameters:
messageKey - the key of the error message in the resourceBundle with messages
GlobalError
public GlobalError(String messageKey,
String[] properties,
Locale locale)
- Use this constructor if the message is a template that contains certain placeholders to be replaced.
- Parameters:
messageKey - properties -
getMessageKey
public String getMessageKey()
getProperties
public String[] getProperties()
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable
- Returns:
- the message as defined in the messages resource bundle.
- Throws:
RuntimeException - when the key was not found in the bundle
MMBase 2.0-SNAPSHOT - null