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,["# InteractionResponse.RemoteError\n\nSummary: [Constants](#constants) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \\| [\\[Expand All\\]](#) \n\nInteractionResponse.RemoteError\n===============================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\nstatic\nfinal\n\nclass\nInteractionResponse.RemoteError\n`\n\n\n`\n\nextends `[Object](https://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | android.support.test.espresso.remote.InteractionResponse.RemoteError |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nTODO(b/31122396): parse this from a proto Enum representing wire protocol error codes and their\ndefault description.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [REMOTE_ESPRESSO_ERROR_CODE](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError#REMOTE_ESPRESSO_ERROR_CODE) |\n| `int` | [REMOTE_PROTOCOL_ERROR_CODE](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError#REMOTE_PROTOCOL_ERROR_CODE) |\n\n| ### Public methods ||\n|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getCode](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError#getCode())`() ` |\n| ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[getDescription](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError#getDescription())`() ` |\n| ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[toString](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError#toString())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html) | ` clone() ` | | ` boolean` | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void` | ` finalize() ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nConstants\n---------\n\n### REMOTE_ESPRESSO_ERROR_CODE\n\n```\nint REMOTE_ESPRESSO_ERROR_CODE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### REMOTE_PROTOCOL_ERROR_CODE\n\n```\nint REMOTE_PROTOCOL_ERROR_CODE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\nPublic methods\n--------------\n\n### getCode\n\n```\nint getCode ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | the error code of this [InteractionResponse.RemoteError](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError) instance. \u003cbr /\u003e |\n\n### getDescription\n\n```\nString getDescription ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://developer.android.com/reference/java/lang/String.html) | the description of this [InteractionResponse.RemoteError](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError) instance. \u003cbr /\u003e |\n\n### toString\n\n```\nString toString ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------------------------------------------------------------------------|--------|\n| [String](https://developer.android.com/reference/java/lang/String.html) | \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [Bindable](/reference/android/support/test/espresso/remote/Bindable)\n - [Converter](/reference/android/support/test/espresso/remote/Converter)\n - [EspressoRemoteMessage](/reference/android/support/test/espresso/remote/EspressoRemoteMessage)\n - [EspressoRemoteMessage.From](/reference/android/support/test/espresso/remote/EspressoRemoteMessage.From)\n - [EspressoRemoteMessage.To](/reference/android/support/test/espresso/remote/EspressoRemoteMessage.To)\n - [RemoteInteraction](/reference/android/support/test/espresso/remote/RemoteInteraction)\n-\n\n Classes\n -------\n\n - [ConstructorInvocation](/reference/android/support/test/espresso/remote/ConstructorInvocation)\n - [EspressoRemote](/reference/android/support/test/espresso/remote/EspressoRemote)\n - [FieldDescriptor](/reference/android/support/test/espresso/remote/FieldDescriptor)\n - [GenericRemoteMessage](/reference/android/support/test/espresso/remote/GenericRemoteMessage)\n - [InteractionRequest](/reference/android/support/test/espresso/remote/InteractionRequest)\n - [InteractionRequest.Builder](/reference/android/support/test/espresso/remote/InteractionRequest.Builder)\n - [InteractionResponse](/reference/android/support/test/espresso/remote/InteractionResponse)\n - [InteractionResponse.Builder](/reference/android/support/test/espresso/remote/InteractionResponse.Builder)\n - [InteractionResponse.RemoteError](/reference/android/support/test/espresso/remote/InteractionResponse.RemoteError)\n - [NoopRemoteInteraction](/reference/android/support/test/espresso/remote/NoopRemoteInteraction)\n - [ProtoUtils](/reference/android/support/test/espresso/remote/ProtoUtils)\n - [RemoteDescriptor](/reference/android/support/test/espresso/remote/RemoteDescriptor)\n - [RemoteDescriptor.Builder](/reference/android/support/test/espresso/remote/RemoteDescriptor.Builder)\n - [RemoteDescriptorRegistry](/reference/android/support/test/espresso/remote/RemoteDescriptorRegistry)\n - [RemoteInteractionRegistry](/reference/android/support/test/espresso/remote/RemoteInteractionRegistry)\n - [TypeProtoConverters](/reference/android/support/test/espresso/remote/TypeProtoConverters)\n-\n\n Enums\n -----\n\n - [InteractionResponse.Status](/reference/android/support/test/espresso/remote/InteractionResponse.Status)\n-\n\n Exceptions\n ----------\n\n - [NoRemoteEspressoInstanceException](/reference/android/support/test/espresso/remote/NoRemoteEspressoInstanceException)\n - [RemoteEspressoException](/reference/android/support/test/espresso/remote/RemoteEspressoException)\n - [RemoteProtocolException](/reference/android/support/test/espresso/remote/RemoteProtocolException)"]]