加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090218033540/http://developer.android.com:80/reference/java/util/MissingResourceException.html
public class

MissingResourceException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.util.MissingResourceException

Class Overview

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

Summary

Public Constructors
MissingResourceException(String detailMessage, String className, 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.
Public Methods
String getClassName()
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.
String getKey()
Returns the name of the missing resource, or an empty string if the resource bundle is missing.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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

Public Methods

public String getClassName ()

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.

Returns
  • String The class name of the resource bundle.

public String getKey ()

Returns the name of the missing resource, or an empty string if the resource bundle is missing.

Returns
  • String The name of the missing resource.