interface FailureHandler

Known direct subclasses

Handles failures that happen during test execution.

Summary

Public functions

Unit
handle(error: Throwable!, viewMatcher: Matcher<View!>!)

Handle the given error in a manner that makes sense to the environment in which the test is executed (e.g. take a screenshot, output extra debug info, etc).

Public functions

handle

fun handle(error: Throwable!, viewMatcher: Matcher<View!>!): Unit

Handle the given error in a manner that makes sense to the environment in which the test is executed (e.g. take a screenshot, output extra debug info, etc). Upon handling, most handlers will choose to propagate the error.