Created
June 18, 2020 15:28
-
-
Save lukaszkalnik/8a3b92bccb508fc57022d87f235d9df1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class ApiError | |
data class HttpError(val code: Int, val body: String) : ApiError() | |
data class NetworkError(val throwable: Throwable) : ApiError() | |
data class UnknownApiError(val throwable: Throwable) : ApiError() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment