recover<E extends Exception> method

Try<T> recover<E extends Exception>(
  1. Recovery<T> recovery
)

Implementation

Try<T> recover<E extends Exception>(final Recovery<T> recovery) {
  return _copyWith(recoveries: Map.from(_recoveries)..putIfAbsent(E, () => recovery));
}