Unwraps a result, yielding the content of an Err.
Err
Throws an Exception if the value is an Ok, with the passed message.
Exception
Ok
@override E expectErr(String msg) => _err;