expectErr abstract method

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

E expectErr(String msg);