# RSRuntimeException

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# RSRuntimeException

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/renderscript/RSRuntimeException "View this page in Java")  

```
open class RSRuntimeException : RuntimeException
```

|---|---|---|---|------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                              |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)                                               ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/kotlin/java/lang/Exception.html#)                                          |||
|   |   | ↳ | [java.lang.RuntimeException](https://developer.android.com/reference/kotlin/java/lang/RuntimeException.html#)                         ||
|   |   |   | ↳ | [android.renderscript.RSRuntimeException](https://developer.android.com/reference/kotlin/android/renderscript/RSRuntimeException#) |

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [RSDriverException](https://developer.android.com/reference/kotlin/android/renderscript/RSDriverException),[RSIllegalArgumentException](https://developer.android.com/reference/kotlin/android/renderscript/RSIllegalArgumentException),[RSInvalidStateException](https://developer.android.com/reference/kotlin/android/renderscript/RSInvalidStateException) |------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------| | [RSDriverException](https://developer.android.com/reference/kotlin/android/renderscript/RSDriverException)                   | Base class for all exceptions thrown by the Android RenderScript | | [RSIllegalArgumentException](https://developer.android.com/reference/kotlin/android/renderscript/RSIllegalArgumentException) | Base class for all exceptions thrown by the Android RenderScript | | [RSInvalidStateException](https://developer.android.com/reference/kotlin/android/renderscript/RSInvalidStateException)       | Base class for all exceptions thrown by the Android RenderScript | |

*** ** * ** ***

| **This exception was deprecated in API level 31.**
|
| 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.

Base class for all exceptions thrown by the Android RenderScript

## Summary

|                                                                                                                    Public constructors                                                                                                                    ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [RSRuntimeException](https://developer.android.com/reference/kotlin/android/renderscript/RSRuntimeException#RSRuntimeException(kotlin.String))`(`string:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> |

## Public constructors

### RSRuntimeException

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
RSRuntimeException(string: String!)
```