expectErr method

  1. @override
E expectErr(
  1. String msg
)
override

Unwraps a result, yielding the content of an Err.

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

Implementation

@override
E expectErr(String msg) => _err;