on Error Response
Runs the given block if the result is an error response.
This does not clear the exception.
Returns the original RestResult
unchanged.
See also
inline fun <T> RestResult<T>.onErrorResponse(error: ErrorResponse, block: (ErrorResponseException) -> Unit): RestResult<T>(source)
Runs the given block if the result is the specified error response.
This does not clear the exception.
Returns the original RestResult
unchanged.