HttpError.beforeReqError constructor

HttpError.beforeReqError({
  1. String? msg,
  2. String? logMsg,
  3. Exception? exception,
})

Implementation

HttpError.beforeReqError(
    {String? msg, String? logMsg, Exception? exception}) {
  cause = exception;
  errorType = ViewErrorType.beforeRequestError;
  message = msg ?? ErrorTextConfig().getViewErrorByType(errorType);
  logMsg = logMsg ?? '请求前错误,这是发生在请求前';
}