expectError
Extracts the value from the AsyncResult if it's an Error, otherwise throws an UnwrapException with the computed message in it.
Extracts the value from the AsyncResult if it's an Error, otherwise throws an UnwrapException with the computed message in it.