{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RootViewException

interface RootViewException extends EspressoException

Known direct 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.


An EspressoException that can provide a Root View.

Types which implement this are also expected to extend Throwable or any of its sub-types, as is typical of all Java exceptions.

Summary

Public methods

abstract View

Returns the root view where this exception is thrown.

Public methods

getRootView

abstract View getRootView()

Returns the root view where this exception is thrown.