Summary: Methods | [Expand All]

# FailureHandler

`public interface FailureHandler`
``

android.support.test.espresso.FailureHandler

Known Indirect Subclasses DefaultFailureHandler
DefaultFailureHandler | Espresso's default `FailureHandler`.

Handles failures that happen during test execution.

## Summary

### Public methods
`abstract void` | `handle(Throwable error, Matcher<View> viewMatcher)` Handle the given error in a manner that makes sense to the environment in which the test is executed (e.g.

## Public methods

### handle

    void handle (Throwable error,
                    Matcher<View> viewMatcher)

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.

Parameters
`error` | `Throwable`
`viewMatcher` | `Matcher`

- ## Interfaces

  - BaseLayerComponent
  - EspressoException
  - FailureHandler
  - IdlingResource
  - IdlingResource.ResourceCallback
  - UiController
  - ViewAction
  - ViewAssertion
  - ViewFinder
  - ViewInteractionComponent

- ## Classes

  - AmbiguousViewMatcherException.Builder
  - DataInteraction
  - Espresso
  - GraphHolder
  - IdlingPolicies
  - IdlingPolicy
  - NoMatchingViewException.Builder
  - PerformException.Builder
  - Root
  - Root.Builder
  - ViewInteraction

- ## Exceptions

  - AmbiguousViewMatcherException
  - AppNotIdleException
  - IdlingResourceTimeoutException
  - InjectEventSecurityException
  - NoActivityResumedException
  - NoMatchingRootException
  - NoMatchingViewException
  - PerformException