Created
November 9, 2017 13:39
-
-
Save javipacheco/71f81c8065d8cce70872772601d5da80 to your computer and use it in GitHub Desktop.
Service
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
typealias Service<A> = Either<AkmeException, A> | |
sealed class AkmeException { | |
data class UiException(val msg: String) : AkmeException() | |
data class ApiException(val msg: String) : AkmeException() | |
data class CallException(val msg: String) : AkmeException() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment