Stay organized with collections
Save and categorize content based on your preferences.
MissingResourceException
open class MissingResourceException : RuntimeException
Signals that a resource is missing.
Summary
Public constructors |
Constructs a MissingResourceException with the specified information.
|
Public methods |
open String! |
Gets parameter passed by constructor.
|
open String! |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MissingResourceException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMissingResourceException\n========================\n\n```\nopen class MissingResourceException : RuntimeException\n```\n\n|---|---|---|---|-----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Exception](../lang/Exception.html#) |||\n| | | ↳ | [java.lang.RuntimeException](../lang/RuntimeException.html#) ||\n| | | | ↳ | [java.util.MissingResourceException](#) |\n\nSignals that a resource is missing.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MissingResourceException](#MissingResourceException(kotlin.String,%20kotlin.String,%20kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `className:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a MissingResourceException with the specified information. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getClassName](#getClassName())`()` Gets parameter passed by constructor. |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getKey](#getKey())`()` Gets parameter passed by constructor. |\n\nPublic constructors\n-------------------\n\n### MissingResourceException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMissingResourceException(\n s: String!, \n className: String!, \n key: String!)\n```\n\nConstructs a MissingResourceException with the specified information. A detail message is a String that describes this particular exception.\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message |\n| `className` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the name of the resource class |\n| `key` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the key for the missing resource. |\n\nPublic methods\n--------------\n\n### getClassName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getClassName(): String!\n```\n\nGets parameter passed by constructor.\n\n| Return ||\n|-----------------------------------------------------------------------------------|--------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the name of the resource class |\n\n### getKey\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getKey(): String!\n```\n\nGets parameter passed by constructor.\n\n| Return ||\n|-----------------------------------------------------------------------------------|----------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the key for the missing resource |"]]