onFailure

public Unit onFailure(Function2<Throwable, Matcher<View>, Unit> function)

Adds failure handler to the view

Parameters

function

Lambda that handles this view's errors