unwrapError<ErrorType extends Object> method

ErrorType unwrapError<ErrorType extends Object>()

Returns error with given type or throws exception

Implementation

ErrorType unwrapError<ErrorType extends Object>() {
  return error! as ErrorType;
}