FileDocCategorySizeDatePackage
MissingResourceException.javaAPI DocAndroid 1.5 API2494Wed May 06 22:41:04 BST 2009java.util

MissingResourceException

public class MissingResourceException extends RuntimeException
A {@code MissingResourceException} is thrown by ResourceBundle when a resource bundle cannot be found or a resource is missing from a resource bundle.
see
ResourceBundle
see
java.lang.RuntimeException
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
String
className
String
key
Constructors Summary
public MissingResourceException(String detailMessage, String className, String resourceName)
Constructs a new {@code MissingResourceException} with the stack trace, message, the class name of the resource bundle and the name of the missing resource filled in.

param
detailMessage the detail message for the exception.
param
className the class name of the resource bundle.
param
resourceName the name of the missing resource.


                                                                                           
        
              
        super(detailMessage);
        this.className = className;
        key = resourceName;
    
Methods Summary
public java.lang.StringgetClassName()
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.

return
the class name of the resource bundle.

        return className;
    
public java.lang.StringgetKey()
Returns the name of the missing resource, or an empty string if the resource bundle is missing.

return
the name of the missing resource.

        return key;