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

NoMatchingRootException

public final class NoMatchingRootException extends RuntimeException implements EspressoException

java.lang.Object
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.test.espresso.NoMatchingRootException

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

Summary

Public constructors

Public methods

static NoMatchingRootException
create(Matcher<Root> rootMatcher, List<Root> roots)

Inherited methods

From class java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public constructors

NoMatchingRootException

public final NoMatchingRootException()

Public methods

create

public static NoMatchingRootException create(Matcher<Root> rootMatcher, List<Root> roots)