Skip to content

Most visited

Recently visited

navigation
Added in API level 1

MissingResourceException

public class MissingResourceException
extends RuntimeException

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


A MissingResourceException is thrown by ResourceBundle when a resource 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 MissingResourceException with the stack trace, message, the class name of the resource bundle and the name of the missing resource filled in.

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.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

MissingResourceException

Added in API level 1
MissingResourceException (String detailMessage, 
                String className, 
                String resourceName)

Constructs a new MissingResourceException with the stack trace, message, the class name of the resource bundle and the name of the missing resource filled in.

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

getClassName

Added in API level 1
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.

getKey

Added in API level 1
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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.