Types

Link copied to clipboard
data class CustomError(val errorCode: Int, val errorMessage: String) : Failure
Link copied to clipboard
data class LegacyError(val errorCode: Int? = null, val errorMessage: String? = null) : Failure
Link copied to clipboard
data class NetworkConnection(val errorCode: Int? = null, val errorMessage: String) : Failure
Link copied to clipboard
data class ServerError(val errorCode: Int, val errorMessage: String) : Failure

Functions

Link copied to clipboard

Extension of Failure that will help us to obtain more data about the error obtained, either due to the Internet connection, the service or a custom error