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
Future<E> expectErr(String msg) => then((result) => result.expectErr(msg));