sealed class Either<out T : Any>
Result of methods which can end with some error.
Error |
Result of error ends methods. data class Error : Either<Nothing> |
Success |
Result of success ends methods. data class Success<out T : Any> : Either<T> |