APIdia Launch Partner
Top Description Fields Constructors Methods
java.util

public Class MissingResourceException

extends RuntimeException
Class Inheritance

Signals that a resource is missing.
Author
Mark Davis
Since
1.1
See Also
java.lang.Exception, ResourceBundle

Field Summary

Modifier and TypeField and Description
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.

private static final long

Constructor Summary

AccessConstructor and Description
public
MissingResourceException(String
the detail message
s
,
String
the name of the resource class
className
,
String
the key for the missing resource.
key
)

Constructs a MissingResourceException with the specified information.

pack-priv
MissingResourceException(String
the detail message
message
,
String
the name of the resource class
className
,
String
the key for the missing resource.
key
,
Throwable
the cause (which is saved for later retrieval by the Throwable#getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs a MissingResourceException with message, className, key, and cause.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the resource class
getClassName
()

Gets parameter passed by constructor.

public String

Returns:

the key for the missing resource
getKey
()

Gets parameter passed by constructor.

Field Detail

classNameback to summary
private String className

The class name of the resource bundle requested by the user.

keyback to summary
private String key

The name of the specific resource requested by the user.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

MissingResourceExceptionback to 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.

Parameters
s:String

the detail message

className:String

the name of the resource class

key:String

the key for the missing resource.

MissingResourceExceptionback to summary
pack-priv 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.

Parameters
message:String

the detail message

className:String

the name of the resource class

key:String

the key for the missing resource.

cause:Throwable

the cause (which is saved for later retrieval by the Throwable#getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Method Detail

getClassNameback to summary
public String getClassName()

Gets parameter passed by constructor.

Returns:String

the name of the resource class

getKeyback to summary
public String getKey()

Gets parameter passed by constructor.

Returns:String

the key for the missing resource