public class NoSuchMessageException extends RuntimeException
Constructor and Description |
---|
NoSuchMessageException(String key)
Create a new exception.
|
NoSuchMessageException(String key,
Locale locale)
Create a new exception.
|
NoSuchMessageException(String key,
Locale locale,
Throwable cause)
Create a new exception.
|
NoSuchMessageException(String key,
Throwable cause)
Create a new exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Get the key without a valid value
|
Locale |
getLocale()
Get the locale without a valid value
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NoSuchMessageException(@Nonnull String key, @Nonnull Locale locale)
key
- key that could not be resolved for given localelocale
- locale that was used to search for the code withinpublic NoSuchMessageException(@Nonnull String key)
key
- key that could not be resolved for given localepublic NoSuchMessageException(@Nonnull String key, @Nonnull Throwable cause)
key
- key that could not be resolved for given localecause
- throwable that caused this exceptionpublic NoSuchMessageException(@Nonnull String key, @Nonnull Locale locale, @Nonnull 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