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