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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# RSRuntimeException\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRSRuntimeException\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/renderscript/RSRuntimeException \"View this page in Java\") \n\n```\nopen class RSRuntimeException : 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.renderscript.RSRuntimeException](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [RSDriverException](/reference/kotlin/android/renderscript/RSDriverException), [RSIllegalArgumentException](/reference/kotlin/android/renderscript/RSIllegalArgumentException), [RSInvalidStateException](/reference/kotlin/android/renderscript/RSInvalidStateException) |-------------------------------------------------------------------------------------------------|------------------------------------------------------------------| | [RSDriverException](/reference/kotlin/android/renderscript/RSDriverException) | Base class for all exceptions thrown by the Android RenderScript | | [RSIllegalArgumentException](/reference/kotlin/android/renderscript/RSIllegalArgumentException) | Base class for all exceptions thrown by the Android RenderScript | | [RSInvalidStateException](/reference/kotlin/android/renderscript/RSInvalidStateException) | Base class for all exceptions thrown by the Android RenderScript | |\n\n*** ** * ** ***\n\n| **This exception was deprecated in API level 31.**\n|\n| Renderscript has been deprecated in API level 31. Please refer to the [migration guide](https://developer.android.com/guide/topics/renderscript/migration-guide) for the proposed alternatives.\n\nBase class for all exceptions thrown by the Android RenderScript\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [RSRuntimeException](#RSRuntimeException(kotlin.String))`(`string:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### RSRuntimeException\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nRSRuntimeException(string: String!)\n```"]]