on Error Response Exception
inline fun <T> RestResult<T>.onErrorResponseException(block: (ErrorResponseException) -> Unit): RestResult<T>(source)
Runs the given block if the result is an ErrorResponseException.
This does not clear the exception.
Returns the original RestResult
unchanged.