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

RootViewException

interface RootViewException : 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 functions

View

Returns the root view where this exception is thrown.

Public functions

getRootView

fun getRootView(): View

Returns the root view where this exception is thrown.