HttpError.parseDataError constructor

HttpError.parseDataError(
  1. dynamic e,
  2. {String logMsg}
)

Implementation

HttpError.parseDataError(e, {String logMsg}){
  httpErrorType = HttpErrorType.DataError;
  message = PARSE_ERROR_MSG;
  logMsg = logMsg??'数据解析错误: $e';
  cause = e is Exception? e : null;
}