Result<DATA, ERROR extends Exception>.failure constructor
Result<DATA, ERROR extends Exception>.failure (
- ERROR error
Implementation
factory Result.failure(ERROR error) => Result(null, error);