MissingResourceException  |  API reference  |  Android Developers (original) (raw)

open class MissingResourceException : RuntimeException

kotlin.Any
kotlin.Throwable
java.lang.Exception
java.lang.RuntimeException

Signals that a resource is missing.

Summary

Public constructors
MissingResourceException(s: String!, className: String!, key: String!) Constructs a MissingResourceException with the specified information.
Public methods
open String! getClassName() Gets parameter passed by constructor.
open String! getKey() Gets parameter passed by constructor.

Public constructors

MissingResourceException

MissingResourceException(
    s: String!,
    className: String!,
    key: String!)

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.

Public methods

getClassName

open fun getClassName(): String!

Gets parameter passed by constructor.

Return
String! the name of the resource class

getKey

open fun getKey(): String!

Gets parameter passed by constructor.

Return
String! the key for the missing resource

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.