org.mmbase.applications.vprowizards.spring
Class GlobalError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.mmbase.applications.vprowizards.spring.GlobalError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FieldError

public class GlobalError
extends RuntimeException

See Also:
Serialized Form

Field Summary
static String MODEL_MAPPING_KEY
           
 
Constructor Summary
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.
 
Method Summary
 String getMessage()
           
 String getMessageKey()
           
 String[] getProperties()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODEL_MAPPING_KEY

public static final String MODEL_MAPPING_KEY
See Also:
Constant Field Values
Constructor Detail

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 -
Method Detail

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