# EspressoException

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

*** ** * ** ***


```
public interface EspressoException extends TestFrameworkException
```

<br />

Known direct subclasses [AppNotIdleException](https://developer.android.com/reference/androidx/test/espresso/AppNotIdleException), [IdlingResourceTimeoutException](https://developer.android.com/reference/androidx/test/espresso/IdlingResourceTimeoutException), [InjectEventSecurityException](https://developer.android.com/reference/androidx/test/espresso/InjectEventSecurityException), [NoActivityResumedException](https://developer.android.com/reference/androidx/test/espresso/NoActivityResumedException), [NoMatchingRootException](https://developer.android.com/reference/androidx/test/espresso/NoMatchingRootException), [NoRemoteEspressoInstanceException](https://developer.android.com/reference/androidx/test/espresso/remote/NoRemoteEspressoInstanceException), [PerformException](https://developer.android.com/reference/androidx/test/espresso/PerformException), [RemoteEspressoException](https://developer.android.com/reference/androidx/test/espresso/remote/RemoteEspressoException), [RemoteProtocolException](https://developer.android.com/reference/androidx/test/espresso/remote/RemoteProtocolException), [RootViewException](https://developer.android.com/reference/androidx/test/espresso/RootViewException)

|---|---|
| `https://developer.android.com/reference/androidx/test/espresso/AppNotIdleException` | An exception which indicates that the App has not become idle even after the specified duration. |
| `https://developer.android.com/reference/androidx/test/espresso/IdlingResourceTimeoutException` | Indicates that an `https://developer.android.com/reference/androidx/test/espresso/IdlingResource`, which has been registered with the framework, has not idled within the allowed time. |
| `https://developer.android.com/reference/androidx/test/espresso/InjectEventSecurityException` | An checked `https://developer.android.com/reference/java/lang/Exception.html` indicating that event injection failed with a `https://developer.android.com/reference/java/lang/SecurityException.html`. |
| `https://developer.android.com/reference/androidx/test/espresso/NoActivityResumedException` | An exception which indicates that there are no activities in stage RESUMED. |
| `https://developer.android.com/reference/androidx/test/espresso/NoMatchingRootException` | Indicates that a given matcher did not match any `https://developer.android.com/reference/androidx/test/espresso/Root`s (windows) from those that are currently available. |
| `https://developer.android.com/reference/androidx/test/espresso/remote/NoRemoteEspressoInstanceException` | An `https://developer.android.com/reference/java/lang/Exception.html` which indicates that there are no remote Espresso clients present. |
| `https://developer.android.com/reference/androidx/test/espresso/PerformException` | Indicates that an exception occurred while performing a ViewAction on the UI thread. |
| `https://developer.android.com/reference/androidx/test/espresso/remote/RemoteEspressoException` | Espresso exception representing any runtime related errors in a multi-process environment |
| `https://developer.android.com/reference/androidx/test/espresso/remote/RemoteProtocolException` | Espresso exception representing any protocol related errors in a multi-process environment |
| `https://developer.android.com/reference/androidx/test/espresso/RootViewException` | An `https://developer.android.com/reference/androidx/test/espresso/EspressoException` that can provide a Root View. |

Known indirect subclasses [AmbiguousViewMatcherException](https://developer.android.com/reference/androidx/test/espresso/AmbiguousViewMatcherException), [NoMatchingViewException](https://developer.android.com/reference/androidx/test/espresso/NoMatchingViewException)

|---|---|
| `https://developer.android.com/reference/androidx/test/espresso/AmbiguousViewMatcherException` | An exception which indicates that a `Matcher<View>` matched multiple views in the hierarchy when only one view was expected. |
| `https://developer.android.com/reference/androidx/test/espresso/NoMatchingViewException` | Indicates that a given matcher did not match any elements in the view hierarchy. |

*** ** * ** ***

Used for identifying an exception as coming from the `https://developer.android.com/reference/androidx/test/espresso/Espresso` framework.