expectErr method

Future<E> expectErr(
  1. String msg
)

Unwraps a result, yielding the content of an Err.

Throws an Exception if the value is an Ok, with the passed message.

Implementation

Future<E> expectErr(String msg) => then((result) => result.expectErr(msg));