public interface EspressoException extends TestFrameworkException

Known direct subclasses
AppNotIdleException

An exception which indicates that the App has not become idle even after the specified duration.

IdlingResourceTimeoutException

Indicates that an IdlingResource, which has been registered with the framework, has not idled within the allowed time.

InjectEventSecurityException

An checked Exception indicating that event injection failed with a .

NoActivityResumedException

An exception which indicates that there are no activities in stage RESUMED.

NoMatchingRootException

Indicates that a given matcher did not match any Roots (windows) from those that are currently available.

NoRemoteEspressoInstanceException

An Exception which indicates that there are no remote Espresso clients present.

PerformException

Indicates that an exception occurred while performing a ViewAction on the UI thread.

RemoteEspressoException

Espresso exception representing any runtime related errors in a multi-process environment

RemoteProtocolException

Espresso exception representing any protocol related errors in a multi-process environment

RootViewException

An EspressoException that can provide a Root View.

Known indirect subclasses
AmbiguousViewMatcherException

An exception which indicates that a Matcher<View> matched multiple views in the hierarchy when only one view was expected.

NoMatchingViewException

Indicates that a given matcher did not match any elements in the view hierarchy.


Used for identifying an exception as coming from the Espresso framework.