public class NoSuchMessageException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
NoSuchMessageException(java.lang.String key)
Create a new exception.
|
NoSuchMessageException(java.lang.String key,
java.util.Locale locale)
Create a new exception.
|
NoSuchMessageException(java.lang.String key,
java.util.Locale locale,
java.lang.Throwable cause)
Create a new exception.
|
NoSuchMessageException(java.lang.String key,
java.lang.Throwable cause)
Create a new exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey()
Get the key without a valid value
|
java.util.Locale |
getLocale()
Get the locale without a valid value
|
public NoSuchMessageException(@Nonnull
java.lang.String key,
@Nonnull
java.util.Locale locale)
key - key that could not be resolved for given localelocale - locale that was used to search for the code withinpublic NoSuchMessageException(@Nonnull
java.lang.String key)
key - key that could not be resolved for given localepublic NoSuchMessageException(@Nonnull
java.lang.String key,
@Nonnull
java.lang.Throwable cause)
key - key that could not be resolved for given localecause - throwable that caused this exceptionpublic NoSuchMessageException(@Nonnull
java.lang.String key,
@Nonnull
java.util.Locale locale,
@Nonnull
java.lang.Throwable cause)
key - key that could not be resolved for given localelocale - locale that was used to search for the code withincause - throwable that caused this exception