doOnRequestException

fun doOnRequestException(block: suspend (request: Request<*>, t: Throwable?) -> Any?)

Useful way to set onRequestException