Skip to content

Instantly share code, notes, and snippets.

@javipacheco
Created November 9, 2017 13:39
Show Gist options
  • Save javipacheco/71f81c8065d8cce70872772601d5da80 to your computer and use it in GitHub Desktop.
Save javipacheco/71f81c8065d8cce70872772601d5da80 to your computer and use it in GitHub Desktop.
Service
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