# TestFrameworkException

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/test/platform/TestFrameworkException "View this page in Java")

<br />

```
interface TestFrameworkException
```

<br />

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

|---------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [EspressoException](https://developer.android.com/reference/kotlin/androidx/test/espresso/EspressoException)                                            | Used for identifying an exception as coming from the[Espresso](https://developer.android.com/reference/kotlin/androidx/test/espresso/Espresso)framework.                                                                           |
| [InjectEventSecurityException](https://developer.android.com/reference/kotlin/androidx/test/platform/ui/InjectEventSecurityException)                   | An checked[Exception](https://developer.android.com/reference/java/lang/Exception.html)indicating that event injection failed with a[SecurityException](https://developer.android.com/reference/java/lang/SecurityException.html). |
| [UnsupportedDeviceOperationException](https://developer.android.com/reference/kotlin/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/kotlin/androidx/test/espresso/AmbiguousViewMatcherException),[AppNotIdleException](https://developer.android.com/reference/kotlin/androidx/test/espresso/AppNotIdleException),[IdlingResourceTimeoutException](https://developer.android.com/reference/kotlin/androidx/test/espresso/IdlingResourceTimeoutException),[InjectEventSecurityException](https://developer.android.com/reference/kotlin/androidx/test/espresso/InjectEventSecurityException),[NoActivityResumedException](https://developer.android.com/reference/kotlin/androidx/test/espresso/NoActivityResumedException),[NoMatchingRootException](https://developer.android.com/reference/kotlin/androidx/test/espresso/NoMatchingRootException),[NoMatchingViewException](https://developer.android.com/reference/kotlin/androidx/test/espresso/NoMatchingViewException),[NoRemoteEspressoInstanceException](https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/NoRemoteEspressoInstanceException),[PerformException](https://developer.android.com/reference/kotlin/androidx/test/espresso/PerformException),[RemoteEspressoException](https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/RemoteEspressoException),[RemoteProtocolException](https://developer.android.com/reference/kotlin/androidx/test/espresso/remote/RemoteProtocolException),[RootViewException](https://developer.android.com/reference/kotlin/androidx/test/espresso/RootViewException)  

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

*** ** * ** ***

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