get Api Error

fun <T> getApiError(response: Response<T>): ApiException

Method to get the type of API Exception

Return

instance of ApiException with given variables and data from API Response

Parameters

response

response from API

Sources

Link copied to clipboard