ApiError
ApiError is a sealed interface that represents the different types of errors that can occur making a request to an API.
Inheritors
Types
Link copied to clipboard
ExpiredToken when the request token is expired.
Link copied to clipboard
MissingDataOnResponse when the response doesn't return all the required data.
Link copied to clipboard
NotInternet when the device is not connected to internet.
Link copied to clipboard
Serialization when the response could not be serialized.
Link copied to clipboard
data class ServerError(val code: Int, val message: String? = null, val messages: List<String>? = null) : ApiError
ServerError when the server responded with an specific error domain.
Link copied to clipboard
Unauthorized when the request requires user authentication.