Created
January 10, 2021 23:01
-
-
Save hadilq/ec51a8450d4a0b798e5694d5262449a7 to your computer and use it in GitHub Desktop.
The result of send method
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 class SendResult | |
data class SendSuccess(val email: Email): SendResult() | |
data class IOFailure(val error: IOException): SendResult() | |
data class Timeout(val error: TimeoutException): SendResult() | |
data class UnAuthorized(val error: UnAuthorizedException): SendResult() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment