data class Error : Either<Nothing>
Result of error ends methods.
message - message for caller which describe what exactly went wrong;
cause - if there was an exception during method execution. May be null if there is no exception.
<init> |
Result of error ends methods. Error(message: String, cause: Exception? = null) |
cause |
if there was an exception during method execution. May be null if there is no exception. val cause: Exception? |
message |
message for caller which describe what exactly went wrong; val message: String |