Last active
November 28, 2021 22:14
-
-
Save raamcosta/88d912b786f878ba91c5ad5bda4df79c to your computer and use it in GitHub Desktop.
This file contains 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 interface GetMagicCardUseCaseError | |
object InvalidCardNameFormat : GetMagicCardUseCaseError | |
// ----------- | |
sealed interface SaveNewDeckUseCaseError | |
object InvalidDeckSize : SaveNewDeckUseCaseError | |
// ----------- | |
sealed interface ApiCallError : GetMagicCardUseCaseError, SaveNewDeckUseCaseError | |
class HttpUnsuccessfulCodeError(val httpCode: Int) : ApiCallError | |
object RemoteServerNotReachedError : ApiCallError | |
object UnexpectedApiCommunicationError : ApiCallError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment