HttpError.emptyMixError constructor

HttpError.emptyMixError(
  1. Map<String, HttpError> httpErrorMap,
  2. bool syncRequest
)

Implementation

HttpError.emptyMixError(Map<String, HttpError> httpErrorMap, bool syncRequest){
  String errorLogMsg = '';
  httpErrorMap.forEach((url, httpError) {
    errorLogMsg = errorLogMsg + '$url :  ${httpError.message}';
  });
  httpErrorType = HttpErrorType.EmptyDataError;
  message = NO_DATA_MSG;
  logMsg = '${syncRequest? '同步' : '异步'}请求报错: $errorLogMsg';
}