Err<T extends Object, E extends Exception> constructor
Err<T extends Object, E extends Exception> (
- E err
Err
An Err can be created with an exception
final err1 = Result<String, Exception>.err(Exception('Unexpected'));
final err2 = Err<String, Exception>(Exception('Unexpected'));
Implementation
Err(this.err) : super._();