Fail.withException constructor

Fail.withException(
  1. Exception exception, {
  2. String message = '',
})

Implementation

Fail.withException(Exception exception, {String message = ''}) : message = message,
                                                                _failedWith = Right<Error, Exception>(exception);