参数错误

@param paramErrors

@return
961157
private static ModelAndView paramError(Map<String, String> paramErrors, Map<String, Object[]> paramArgusErrors,
                                           ErrorCode errorCode) {

        JsonObjectBase jsonObject = JsonObjectUtils.buildFieldError(paramErrors, paramArgusErrors, errorCode);
        return JsonObjectUtils.JsonObjectError2ModelView((JsonObjectError) jsonObject);
    }
835918
public static JsonObjectBase buildFieldError(Map<String, String> errors, Map<String, Object[]> argsMap,
                                                 ErrorCode statusCode) {

        JsonObjectError json = new JsonObjectError();
        json.setStatus(statusCode.getCode());

        for (String str : errors.keySet()) {

            try {
                json.addFieldError(str, contextReader.getMessage(errors.get(str), argsMap.get(str)));
            } catch (NoSuchMessageException e) {
                json.addFieldError(str, errors.get(str));
            }
        }

        LOG.info(json.toString());

        return json;
    }
1129803
private String getErrorCode(String errorShapeName) {
        ErrorTrait errorTrait = getServiceModel().getShapes().get(errorShapeName).getErrorTrait();
        if (isErrorCodeOverridden(errorTrait)) {
            return errorTrait.getErrorCode();
        } else {
            return errorShapeName;
        }
    }
290814
private static JavaScriptObject[] toNativeErrorArray(List<JSError> errors) {
    JavaScriptObject[] out = new JavaScriptObject[errors.size()];
    for (int i = 0; i < errors.size(); ++i) {
      JSError error = errors.get(i);
      DiagnosticType type = error.getType();
      out[i] = createError(error.sourceName, error.description, type != null ? type.key : null,
          error.lineNumber, error.getCharno());
    }
    return out;
  }
1065810
public java.util.ArrayList getExceptions() {
        if (exceptions != null)
            return (java.util.ArrayList) exceptions.clone();
        else
            return null;
    }
1021042
public void error(String key, Object... params) {
        Tr.error(tc, key, params);
    }
285944
public List<CsvFieldError> getFieldErrors(final CsvBindingErrors bindingErrors) {
        Objects.requireNonNull(bindingErrors);
        return bindingErrors.getFieldErrors(getName());
    }
1052624
public static ValidationReport generateFlowLoaderReport(final Set<String> errors) {
    final ValidationReport report = new ValidationReport();
    report.addErrorMsgs(errors);
    return report;
  }
506216
public List<Cal10nError> verifyAllLocales() {
    List<Cal10nError> errorList = new ArrayList<Cal10nError>();

    String[] localeNameArray = getLocaleNames();

    ErrorFactory errorFactory = new ErrorFactory(enumTypeAsStr, null, getBaseName());


    if (localeNameArray == null || localeNameArray.length == 0) {
      errorList.add(errorFactory.buildError(MISSING_LOCALE_DATA_ANNOTATION, "*"));
      return errorList;
    }
    for (String localeName : localeNameArray) {
      Locale locale = MiscUtil.toLocale(localeName);
      List<Cal10nError> tmpList = verify(locale);
      errorList.addAll(tmpList);
    }

    return errorList;
  }
1276168
protected ValidationMessage<Origin> reportError(Origin origin, String messageKey,
			Object... params) {
		return reportMessage(Severity.ERROR, origin, messageKey, params);
	}
444623
public List<Throwable> getErrors() {
        final List<Throwable> retval = new ArrayList<Throwable>();
        for (final TestInfo testInfo : contractTestMap.listTestInfo()) {
            retval.addAll( testInfo.getErrors() );
        }
        return retval;
    }
1135211
public java.util.Map<java.lang.String, alluxio.grpc.InconsistentProperties> getErrorsMap() {
    return internalGetErrors().getMap();
  }
1352386
public com.google.api.ads.admanager.axis.v201811.ApiError[] getErrors() {
        return errors;
    }
1203656
public static function inParams(ParamErrors $errors, ParamErrorMessages $errorMessages): self
    {
        return new self(Sequence::of($errors)->map(
                function(array $errors, $paramName) use ($errorMessages): array
                {
                    $resolved = ['field' => $paramName, 'errors' => []];
                    foreach ($errors as $id => $error) {
                        $resolved['errors'][] = [
                                'id'      => $id,
                                'details' => $error->details(),
                                'message' => $errorMessages->messageFor($error)->message()
                        ];
                    }

                    return $resolved;
                }
        ));
    }
953760
function(errors, options) {
      errors = v.pruneEmptyErrors(errors, options);
      errors = v.expandMultipleErrors(errors, options);
      errors = v.convertErrorMessages(errors, options);

      var format = options.format || "grouped";

      if (typeof v.formatters[format] === 'function') {
        errors = v.formatters[format](errors);
      } else {
        throw new Error(v.format("Unknown format %{format}", options));
      }

      return v.isEmpty(errors) ? undefined : errors;
    }
145037
public List getErrorMessages() {
	             List messages = new ArrayList();
	         for ( Iterator errorIter = errors.iterator() ; errorIter.hasNext() ; ) {
	                      messages.add( createErrorMessage( (RecognitionException) errorIter.next() ) );
	                  }
	                  return messages;
	         }
800738
protected ImageDescriptor handleImageDescriptorError(Object[] params, Throwable exception) {
		if (exception instanceof NullPointerException) {
			final Object defaultImage = getDefaultImage();
			if (defaultImage instanceof ImageDescriptor) {
				return (ImageDescriptor) defaultImage;
			}
			if (defaultImage instanceof Image) {
				return ImageDescriptor.createFromImage((Image) defaultImage);
			}
			return super.imageDescriptor(params[0]);
		}
		return Exceptions.throwUncheckedException(exception);
	}