org.springframework.context
public class: NoSuchMessageException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.context.NoSuchMessageException
All Implemented Interfaces:
Serializable
Exception thrown when a message can't be resolved.
| Constructor: |
public NoSuchMessageException(String code) {
super("No message found under code '" + code + "' for locale '" + Locale.getDefault() + "'.");
}
Parameters:
code - code that could not be resolved for given locale
|
public NoSuchMessageException(String code,
Locale locale) {
super("No message found under code '" + code + "' for locale '" + locale + "'.");
}
Parameters:
code - code that could not be resolved for given locale
locale - locale that was used to search for the code within
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |