NoMatchingViewException

public final class NoMatchingViewException
extends RuntimeException implements EspressoException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.support.test.espresso.NoMatchingViewException


表示给定的匹配器与视图层次结构中的任何元素都不匹配。

包含有关匹配器的详细信息和当前视图层次结构,以帮助进行调试。

由于这通常是不可恢复的错误,因此此异常是运行时异常。

对视图和失败匹配器的引用有意不包含在此对象的状态中 - 因为它很可能会在UI线程上创建并在检测线程上抛出,所以触摸检测线程上的视图将无效。 此外,自从创建异常以来,视图层次结构可能发生了变化(导致更多混淆)。

Summary

Nested classes

class NoMatchingViewException.Builder

建设者为NoMatchingViewException

Public methods

String getViewMatcherDescription()

返回ViewMatcher的字符串描述,该描述与层次结构中的任何视图都不匹配。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public methods

getViewMatcherDescription

String getViewMatcherDescription ()

返回ViewMatcher的字符串描述,该描述与层次结构中的任何视图都不匹配。

Returns
String