Created
March 11, 2022 14:22
-
-
Save Daniel-Jacob/7ba9c625c3afc0fa5ee0f3a8fa6bf8c1 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 class Error { | |
data class ValidationError(val id: Long, val message: String): Error() | |
data class IOError(val message: String, val throwable: Throwable): Error() | |
object FatalError : Error() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment