Android
java.util
public class

java.util.MissingResourceException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.lang.RuntimeException
java.util.MissingResourceException

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.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48