# RSIllegalArgumentException

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)

# RSIllegalArgumentException

*** ** * ** ***

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

```
open class RSIllegalArgumentException : 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.RSIllegalArgumentException](https://developer.android.com/reference/kotlin/android/renderscript/RSIllegalArgumentException#) |

*** ** * ** ***

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

## Public constructors

### RSIllegalArgumentException

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

```
RSIllegalArgumentException(string: String!)
```