onFailure

a failure scope that is attachable to a task instance * task().onFailure { // handle failure } use this scope to retrieve the failure response of a task