Res<S, F>.err constructor
Res<S, F>.err (
- F value
A Result holding the reason an operation failed.
A failure made from a caught throw also holds its exception and stack trace. Every operator that passes a failure along keeps them.
Implementation
Res.err(F value) : this._(Failure(value));