java.util

Class MissingResourceException

public class MissingResourceException extends RuntimeException

This exception is thrown when a resource is missing.

Since: 1.1

See Also: ResourceBundle

UNKNOWN: updated to 1.4

Constructor Summary
MissingResourceException(String s, String className, String key)
Creates a new exception, with the specified parameters.
Method Summary
StringgetClassName()
Gets the name of the resource bundle, for which a resource is missing.
StringgetKey()
Gets the key of the resource that is missing bundle, this is an empty string if the whole resource bundle is missing.

Constructor Detail

MissingResourceException

public MissingResourceException(String s, String className, String key)
Creates a new exception, with the specified parameters.

Parameters: s the detail message className the name of the resource bundle key the key of the missing resource

Method Detail

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