FileDocCategorySizeDatePackage
MissingResourceException.javaAPI DocJava SE 6 API3181Tue Jun 10 00:25:54 BST 2008java.util

MissingResourceException

public class MissingResourceException extends RuntimeException
Signals that a resource is missing.
see
java.lang.Exception
see
ResourceBundle
version
1.19, 11/17/05
author
Mark Davis
since
JDK1.1

Fields Summary
private static final long
serialVersionUID
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;
    
MissingResourceException(String message, String className, String key, Throwable cause)
Constructs a MissingResourceException with message, className, key, and cause. This constructor is package private for use by ResourceBundle.getBundle.

param
message the detail message
param
className the name of the resource class
param
key the key for the missing resource.
param
cause the cause (which is saved for later retrieval by the {@link Throwable.getCause()} method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

	super(message, cause);
        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;