Result<DATA, ERROR extends Exception>.failure constructor

Result<DATA, ERROR extends Exception>.failure(
  1. ERROR error
)

Implementation

factory Result.failure(ERROR error) => Result(null, error);