# RenderScript.RSErrorHandler

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)

# RSErrorHandler

*** ** * ** ***

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

```
open class RSErrorHandler : Runnable
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                       ||
| ↳ | [android.renderscript.RenderScript.RSErrorHandler](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.RSErrorHandler#) |

*** ** * ** ***

| **This class was deprecated in API level 31.**
|
| Deprecated in Java.

The runtime error handler base class. An application should derive from this class if it wishes to install an error handler. When errors occur at runtime, the fields in this class will be filled, and the run method will be called.

## Summary

|                                                               Public constructors                                                                ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|---|
| [RSErrorHandler](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.RSErrorHandler#RSErrorHandler())`()` <br /> |

|                                                                                              Public methods                                                                                               ||
|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [run](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.RSErrorHandler#run())`()` <br /> |

|                                                                                                               Properties                                                                                                               ||
|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [mErrorMessage](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.RSErrorHandler#mErrorMessage:kotlin.String) <br /> |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)        | [mErrorNum](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.RSErrorHandler#mErrorNum:kotlin.Int) <br />            |

## Public constructors

### RSErrorHandler

```
RSErrorHandler()
```

## Public methods

### run

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

```
open fun run(): Unit
```

**Deprecated:** *Deprecated in Java.*

## Properties

### mErrorMessage

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

```
protected var mErrorMessage: String!
```

**Deprecated:** *Deprecated in Java.*  

### mErrorNum

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

```
protected var mErrorNum: Int
```

**Deprecated:** *Deprecated in Java.*