# TestFrameworkException

Artifact: [androidx.test:monitor](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/platform/TestFrameworkException.java+class:androidx.test.platform.TestFrameworkException)

*** ** * ** ***


```
public interface TestFrameworkException
```

<br />

Known direct subclasses [EspressoException](https://developer.android.com/reference/androidx/test/espresso/EspressoException), [InjectEventSecurityException](https://developer.android.com/reference/androidx/test/platform/ui/InjectEventSecurityException), [UnsupportedDeviceOperationException](https://developer.android.com/reference/androidx/test/platform/device/UnsupportedDeviceOperationException)

|---|---|
| `https://developer.android.com/reference/androidx/test/espresso/EspressoException` | Used for identifying an exception as coming from the `https://developer.android.com/reference/androidx/test/espresso/Espresso` framework. |
| `https://developer.android.com/reference/androidx/test/platform/ui/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/platform/device/UnsupportedDeviceOperationException` | An exception which indicates that the device selected does not support an operation called on it. |

Known indirect subclasses [AmbiguousViewMatcherException](https://developer.android.com/reference/androidx/test/espresso/AmbiguousViewMatcherException), [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), [NoMatchingViewException](https://developer.android.com/reference/androidx/test/espresso/NoMatchingViewException), [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/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/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/NoMatchingViewException` | Indicates that a given matcher did not match any elements in the view hierarchy. |
| `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. |

*** ** * ** ***

Marker interface for identifying an exception as coming from a test framework.