onFailure

abstract fun onFailure(call: Call<T>, t: Throwable)

Invoked when a network exception occurred talking to the server or when an unexpected exception occurred creating the request or processing the response.