# RSInvalidStateException

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)

# RSInvalidStateException

*** ** * ** ***

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

```
open class RSInvalidStateException : RSRuntimeException
```

|---|---|---|---|---|----------------------------------------------------------------------------------------------------------------------------------------------|
| [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)               ||
|   |   |   |   | ↳ | [android.renderscript.RSInvalidStateException](https://developer.android.com/reference/kotlin/android/renderscript/RSInvalidStateException#) |

*** ** * ** ***

| **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                                                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [RSInvalidStateException](https://developer.android.com/reference/kotlin/android/renderscript/RSInvalidStateException#RSInvalidStateException(kotlin.String))`(`string:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> |

## Public constructors

### RSInvalidStateException

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

```
RSInvalidStateException(string: String!)
```