MissingResourceExceptionpublic class MissingResourceException extends RuntimeException A {@code MissingResourceException} is thrown by ResourceBundle when a
resource bundle cannot be found or a resource is missing from a resource
bundle. |
Fields Summary |
---|
private static final long | serialVersionUID | String | className | String | key |
Constructors Summary |
---|
public MissingResourceException(String detailMessage, String className, String resourceName)Constructs a new {@code MissingResourceException} with the stack trace,
message, the class name of the resource bundle and the name of the
missing resource filled in.
super(detailMessage);
this.className = className;
key = resourceName;
|
Methods Summary |
---|
public java.lang.String | getClassName()Returns the class name of the resource bundle from which a resource could
not be found, or in the case of a missing resource, the name of the
missing resource bundle.
return className;
| public java.lang.String | getKey()Returns the name of the missing resource, or an empty string if the
resource bundle is missing.
return key;
|
|