java.util.MissingResourceException
This runtime exception is thrown by ResourceBundle when a resouce bundle
cannot be found or a resource is missing from a resource bundle.
Summary
Public Constructors
Public Methods
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
MissingResourceException(String detailMessage, String className, String resourceName)
Constructs a new instance of this class with its walkback, message, the
class name of the resource bundle and the name of the missing resource.
Parameters
detailMessage
| String The detail message for the exception. |
className
| String The class name of the resource bundle. |
resourceName
| String The name of the missing resource.
|
Public Methods
public
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.
Returns
- String The class name of the resource bundle.
public
String
getKey()
Returns the name of the missing resource, or an empty string if the
resource bundle is missing.
Returns
- String The name of the missing resource.