Result.unwrapErr returns the error contained in an Err and throws if the result is Ok.
Result.unwrapErr
Err
Ok
Result<T,E>.unwrapErr = () => E;
div(1, 0).unwrap(); // => MathError.DivisionByZero