public class MissingResourceException extends RuntimeException
MissingResourceException is thrown by ResourceBundle when a
resource bundle cannot be found or a resource is missing from a resource
bundle.ResourceBundle,
RuntimeException,
Serialized Form| Constructor and Description |
|---|
MissingResourceException(String detailMessage,
String className,
String resourceName)
Constructs a new
MissingResourceException with the stack trace,
message, the class name of the resource bundle and the name of the
missing resource filled in. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getKey()
Returns the name of the missing resource, or an empty string if the
resource bundle is missing.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MissingResourceException(String detailMessage, String className, String resourceName)
MissingResourceException with the stack trace,
message, the class name of the resource bundle and the name of the
missing resource filled in.detailMessage - the detail message for the exception.className - the class name of the resource bundle.resourceName - the name of the missing resource.public String getClassName()
public String getKey()