Stay organized with collections
Save and categorize content based on your preferences.
AndroidRuntimeException
open class AndroidRuntimeException : RuntimeException
Base class for all unchecked exceptions thrown by the Android frameworks.
Summary
Public constructors
AndroidRuntimeException
AndroidRuntimeException()
AndroidRuntimeException
AndroidRuntimeException(cause: Exception!)
AndroidRuntimeException
AndroidRuntimeException(name: String!)
AndroidRuntimeException
AndroidRuntimeException(
name: String!,
cause: Throwable!)
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,["# AndroidRuntimeException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAndroidRuntimeException\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/util/AndroidRuntimeException \"View this page in Java\") \n\n```\nopen class AndroidRuntimeException : 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](../../java/lang/Exception.html#) |||\n| | | ↳ | [java.lang.RuntimeException](../../java/lang/RuntimeException.html#) ||\n| | | | ↳ | [android.util.AndroidRuntimeException](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [BadParcelableException](../os/BadParcelableException.html#), [Fragment.InstantiationException](../app/Fragment.InstantiationException.html#), [KeyCharacterMap.UnavailableException](../view/KeyCharacterMap.UnavailableException.html#), [ReceiverCallNotAllowedException](../content/ReceiverCallNotAllowedException.html#) |--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [BadParcelableException](../os/BadParcelableException.html#) | Exception thrown when a [Parcelable](../os/Parcelable.html#) is malformed or otherwise invalid. | | [Fragment.InstantiationException](../app/Fragment.InstantiationException.html#) | Thrown by [Fragment.instantiate(Context, String, Bundle)](../app/Fragment.html#instantiate(android.content.Context,%20kotlin.String,%20android.os.Bundle)) when there is an instantiation failure. | | [KeyCharacterMap.UnavailableException](../view/KeyCharacterMap.UnavailableException.html#) | Thrown by [KeyCharacterMap.load](../view/KeyCharacterMap.html#load(kotlin.Int)) when a key character map could not be loaded. | | [ReceiverCallNotAllowedException](../content/ReceiverCallNotAllowedException.html#) | This exception is thrown from android. | |\n\nBase class for all unchecked exceptions thrown by the Android frameworks.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [AndroidRuntimeException](#AndroidRuntimeException())`()` \u003cbr /\u003e |\n| [AndroidRuntimeException](#AndroidRuntimeException(java.lang.Exception))`(`cause:` `[Exception](../../java/lang/Exception.html#)!`)` \u003cbr /\u003e |\n| [AndroidRuntimeException](#AndroidRuntimeException(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n| [AndroidRuntimeException](#AndroidRuntimeException(kotlin.String,%20kotlin.Throwable))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### AndroidRuntimeException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAndroidRuntimeException()\n``` \n\n### AndroidRuntimeException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAndroidRuntimeException(cause: Exception!)\n``` \n\n### AndroidRuntimeException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAndroidRuntimeException(name: String!)\n``` \n\n### AndroidRuntimeException\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAndroidRuntimeException(\n name: String!, \n cause: Throwable!)\n```"]]