java.util
Class MissingResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.MissingResourceException

public class MissingResourceException
extends RuntimeException

This exception is thrown when a resource is missing.

Since:
1.1
See Also:
ResourceBundle

Constructor Summary
MissingResourceException(String s, String className, String key)
          Creates a new exception, with the specified parameters.
 
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.
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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