# InteractionResponse.RemoteError

Artifact: [androidx.test.espresso:espresso-remote](https://developer.android.com/jetpack/androidx/releases/test-espresso) [View Source](https://cs.android.com/search?q=file:androidx/test/espresso/remote/InteractionResponse.java+class:androidx.test.espresso.remote.InteractionResponse.RemoteError)

*** ** * ** ***


```
public final class InteractionResponse.RemoteError
```

<br />

*** ** * ** ***

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError#REMOTE_ESPRESSO_ERROR_CODE() = 0` |
| `static final int` | `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError#REMOTE_PROTOCOL_ERROR_CODE() = 1` |

| ### Public fields |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError#code()` |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError#description()` |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError#getCode()()` |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError#getDescription()()` |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError#toString()()` |

## Constants

### REMOTE_ESPRESSO_ERROR_CODE

```
public static final int REMOTE_ESPRESSO_ERROR_CODE = 0
```

### REMOTE_PROTOCOL_ERROR_CODE

```
public static final int REMOTE_PROTOCOL_ERROR_CODE = 1
```

## Public fields

### code

```
public final int code
```

### description

```
public final String description
```

## Public methods

### getCode

```
public int getCode()
```

| Returns |
|---|---|
| `int` | the error code of this `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError` instance. |

### getDescription

```
public String getDescription()
```

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | the description of this `https://developer.android.com/reference/androidx/test/espresso/remote/InteractionResponse.RemoteError` instance. |

### toString

```
public String toString()
```