java.util
Class MissingResourceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.util.MissingResourceException
All Implemented Interfaces:
Serializable

public class MissingResourceException
extends RuntimeException

This runtime exception is thrown by ResourceBundle when a resouce bundle cannot be found or a resource is missing from a resource bundle.

See Also:
ResourceBundle, Serialized Form

Constructor Summary
MissingResourceException(java.lang.String detailMessage, java.lang.String className, java.lang.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.
 
Method Summary
 java.lang.String getClassName()
          Answers 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.
 java.lang.String getKey()
          Answers the name of the missing resource, or an empty string if the resource bundle is missing.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MissingResourceException

public MissingResourceException(java.lang.String detailMessage,
                                java.lang.String className,
                                java.lang.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.
Method Detail

getClassName

public java.lang.String getClassName()
Answers 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.

getKey

public java.lang.String getKey()
Answers the name of the missing resource, or an empty string if the resource bundle is missing.

Returns:
String The name of the missing resource.