Stay organized with collections
Save and categorize content based on your preferences.
public interface EspressoException extends TestFrameworkException
Known indirect subclasses
Used for identifying an exception as coming from the Espresso
framework.
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-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# EspressoException\n=================\n\nArtifact: [androidx.test.espresso:espresso-core](/jetpack/androidx/releases/test-espresso) \n[View Source](https://cs.android.com/search?q=file:androidx/test/espresso/EspressoException.java+class:androidx.test.espresso.EspressoException)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/test/espresso/EspressoException \"View this page in Kotlin\") \\|Java\n\n\n```\npublic interface EspressoException extends TestFrameworkException\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[AppNotIdleException](/reference/androidx/test/espresso/AppNotIdleException), [IdlingResourceTimeoutException](/reference/androidx/test/espresso/IdlingResourceTimeoutException), [InjectEventSecurityException](/reference/androidx/test/espresso/InjectEventSecurityException), [NoActivityResumedException](/reference/androidx/test/espresso/NoActivityResumedException), [NoMatchingRootException](/reference/androidx/test/espresso/NoMatchingRootException), [NoRemoteEspressoInstanceException](/reference/androidx/test/espresso/remote/NoRemoteEspressoInstanceException), [PerformException](/reference/androidx/test/espresso/PerformException), [RemoteEspressoException](/reference/androidx/test/espresso/remote/RemoteEspressoException), [RemoteProtocolException](/reference/androidx/test/espresso/remote/RemoteProtocolException), [RootViewException](/reference/androidx/test/espresso/RootViewException) \n\n|-----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AppNotIdleException](/reference/androidx/test/espresso/AppNotIdleException) | An exception which indicates that the App has not become idle even after the specified duration. |\n| [IdlingResourceTimeoutException](/reference/androidx/test/espresso/IdlingResourceTimeoutException) | Indicates that an [IdlingResource](/reference/androidx/test/espresso/IdlingResource), which has been registered with the framework, has not idled within the allowed time. |\n| [InjectEventSecurityException](/reference/androidx/test/espresso/InjectEventSecurityException) | An checked [Exception](https://developer.android.com/reference/java/lang/Exception.html) indicating that event injection failed with a . |\n| [NoActivityResumedException](/reference/androidx/test/espresso/NoActivityResumedException) | An exception which indicates that there are no activities in stage RESUMED. |\n| [NoMatchingRootException](/reference/androidx/test/espresso/NoMatchingRootException) | Indicates that a given matcher did not match any [Root](/reference/androidx/test/espresso/Root)s (windows) from those that are currently available. |\n| [NoRemoteEspressoInstanceException](/reference/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. |\n| [PerformException](/reference/androidx/test/espresso/PerformException) | Indicates that an exception occurred while performing a ViewAction on the UI thread. |\n| [RemoteEspressoException](/reference/androidx/test/espresso/remote/RemoteEspressoException) | Espresso exception representing any runtime related errors in a multi-process environment |\n| [RemoteProtocolException](/reference/androidx/test/espresso/remote/RemoteProtocolException) | Espresso exception representing any protocol related errors in a multi-process environment |\n| [RootViewException](/reference/androidx/test/espresso/RootViewException) | An [EspressoException](/reference/androidx/test/espresso/EspressoException) that can provide a Root View. |\n\nKnown indirect subclasses \n[AmbiguousViewMatcherException](/reference/androidx/test/espresso/AmbiguousViewMatcherException), [NoMatchingViewException](/reference/androidx/test/espresso/NoMatchingViewException) \n\n|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| [AmbiguousViewMatcherException](/reference/androidx/test/espresso/AmbiguousViewMatcherException) | An exception which indicates that a `Matcher\u003cView\u003e` matched multiple views in the hierarchy when only one view was expected. |\n| [NoMatchingViewException](/reference/androidx/test/espresso/NoMatchingViewException) | Indicates that a given matcher did not match any elements in the view hierarchy. |\n\n*** ** * ** ***\n\nUsed for identifying an exception as coming from the [Espresso](/reference/androidx/test/espresso/Espresso) framework."]]