expect abstract method
Unwraps a result, yielding the content of an Ok
.
Throws an Exception
if the value is an Err
, with the passed message.
Implementation
T expect(String msg);
Unwraps a result, yielding the content of an Ok
.
Throws an Exception
if the value is an Err
, with the passed message.
T expect(String msg);