differ-core / com.differ.differcore.models / Either / Error

Error

data class Error : Either<Nothing>

Result of error ends methods.

Parameters

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.

Constructors

<init>

Result of error ends methods.

Error(message: String, cause: Exception? = null)

Properties

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