handleFailure

open fun handleFailure(type: Int, errorMessage: String)

Invoked when a resource failed to be retrieved.

Parameters

type

the error type, either one of CONNECTION_ERROR, TEMPORARY_ERROR or PERMANENT_ERROR

errorMessage

the error message associated with the failure