onError

abstract fun onError(@NotNull t: @NotNull Throwable)

Called when the connection attempt has failed.

Parameters

t

The connection failure reason.