Unwraps a Result, returning the error value. Throws an error if the
Result is Result.Ok.
This function is used when you expect a Result to be an error and want to
extract the error value. If the Result is unexpectedly Ok, it will throw an
error with information about the unexpected success value.
Unwraps a
Result
, returning the error value. Throws an error if theResult
isResult.Ok
.This function is used when you expect a Result to be an error and want to extract the error value. If the Result is unexpectedly Ok, it will throw an error with information about the unexpected success value.