public class NoSuchResourceException extends RuntimeException
| Constructor and Description |
|---|
NoSuchResourceException(String key)
Create a new exception.
|
NoSuchResourceException(String key,
Locale locale)
Create a new exception.
|
NoSuchResourceException(String key,
Locale locale,
Throwable cause)
Create a new exception.
|
NoSuchResourceException(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, toStringpublic NoSuchResourceException(@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 NoSuchResourceException(@Nonnull String key)
key - key that could not be resolved for given localepublic NoSuchResourceException(@Nonnull String key, @Nonnull Throwable cause)
key - key that could not be resolved for given localecause - throwable that caused this exceptionpublic NoSuchResourceException(@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