java.util
Class MissingResourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.MissingResourceException
public class MissingResourceException
- extends RuntimeException
This exception is thrown when a resource is missing.
- Since:
- 1.1
- See Also:
ResourceBundle
Method Summary |
String |
getClassName()
Gets the name of the resource bundle, for which a resource is missing. |
String |
getKey()
Gets the key of the resource that is missing bundle, this is an empty
string if the whole resource bundle is missing. |
MissingResourceException
public MissingResourceException(String s,
String className,
String key)
- Creates a new exception, with the specified parameters.
- Parameters:
s
- the detail messageclassName
- the name of the resource bundlekey
- the key of the missing resource
getClassName
public String getClassName()
- Gets the name of the resource bundle, for which a resource is missing.
- Returns:
- the name of the resource bundle
getKey
public String getKey()
- Gets the key of the resource that is missing bundle, this is an empty
string if the whole resource bundle is missing.
- Returns:
- the name of the resource bundle