public 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 @NonNull View

Returns the root view where this exception is thrown.

Public methods

getRootView

abstract @NonNull View getRootView()

Returns the root view where this exception is thrown.