FileDocCategorySizeDatePackage
MissingResourceException.javaAPI DocJava SE 5 API2153Fri Aug 26 14:57:24 BST 2005java.util

MissingResourceException

public class MissingResourceException extends RuntimeException
Signals that a resource is missing.
see
java.lang.Exception
see
ResourceBundle
version
1.16, 12/19/03
author
Mark Davis
since
JDK1.1

Fields Summary
private String
className
The class name of the resource bundle requested by the user.
private String
key
The name of the specific resource requested by the user.
Constructors Summary
public MissingResourceException(String s, String className, String key)
Constructs a MissingResourceException with the specified information. A detail message is a String that describes this particular exception.

param
s the detail message
param
className the name of the resource class
param
key the key for the missing resource.

        super(s);
        this.className = className;
        this.key = key;
    
Methods Summary
public java.lang.StringgetClassName()
Gets parameter passed by constructor.

return
the name of the resource class

        return className;
    
public java.lang.StringgetKey()
Gets parameter passed by constructor.

return
the key for the missing resource

        return key;