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.
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,["# RenderScript.RSErrorHandler\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\nRSErrorHandler\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/renderscript/RenderScript.RSErrorHandler \"View this page in Java\") \n\n```\nopen class RSErrorHandler : Runnable\n```\n\n|---|-------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.renderscript.RenderScript.RSErrorHandler](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 31.**\n|\n| Deprecated in Java.\n\nThe 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.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------|---|\n| [RSErrorHandler](#RSErrorHandler())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|--------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [run](#run())`()` \u003cbr /\u003e |\n\n| Properties ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [mErrorMessage](#mErrorMessage:kotlin.String) \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [mErrorNum](#mErrorNum:kotlin.Int) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### RSErrorHandler\n\n```\nRSErrorHandler()\n```\n\nPublic methods\n--------------\n\n### run\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun run(): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nProperties\n----------\n\n### mErrorMessage\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected var mErrorMessage: String!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### mErrorNum\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected var mErrorNum: Int\n```\n\n**Deprecated:** *Deprecated in Java.*"]]