class MultipleArtifactsNotFoundException extends ArtifactResolutionException {
    private static final String LS = System.lineSeparator();

    private final List<Artifact> resolvedArtifacts;
    private final List<Artifact> missingArtifacts;

    /**
     * @param originatingArtifact the artifact that was being resolved
     * @param missingArtifacts    artifacts that could not be resolved
     * @param remoteRepositories  remote repositories where the missing artifacts were not found
     * @deprecated use {@link #MultipleArtifactsNotFoundException(Artifact, List, List, List)}
     */
    @Deprecated
    public MultipleArtifactsNotFoundException(
            Artifact originatingArtifact,
            List<Artifact> missingArtifacts,
            List<ArtifactRepository> remoteRepositories) {
        this(originatingArtifact, new ArrayList<>(), missingArtifacts, remoteRepositories);
    }

    /**
     * Create an instance of the exception with all required information.
     *
     * @param originatingArtifact the artifact that was being resolved
     * @param resolvedArtifacts   artifacts that could be resolved
     * @param missingArtifacts    artifacts that could not be resolved
     * @param remoteRepositories  remote repositories where the missing artifacts were not found
     */
    public MultipleArtifactsNotFoundException(
            Artifact originatingArtifact,
            List<Artifact> resolvedArtifacts,
            List<Artifact> missingArtifacts,
            List<ArtifactRepository> remoteRepositories) {
        super(constructMessage(missingArtifacts), originatingArtifact, remoteRepositories);
        this.resolvedArtifacts = resolvedArtifacts;
        this.missingArtifacts = missingArtifacts;
    }

    /**
     * artifacts that could be resolved
     *
     * @return {@link List} of {@link Artifact}
     */
    public List<Artifact> getResolvedArtifacts() {
        return resolvedArtifacts;
    }

    /**
     * artifacts that could NOT be resolved
     *
     * @return {@link List} of {@link Artifact}
     */
    public List<Artifact> getMissingArtifacts() {
        return missingArtifacts;
    }

    private static String constructMessage(List<Artifact> artifacts) {<FILL_FUNCTION_BODY>}
}

        StringBuilder buffer = new StringBuilder(256);

        buffer.append("Missing:").append(LS);
        buffer.append("----------").append(LS);

        int counter = 0;

        for (Artifact artifact : artifacts) {
            String message = (++counter) + ") " + artifact.getId();

            buffer.append(constructMissingArtifactMessage(
                    message,
                    "  ",
                    artifact.getGroupId(),
                    artifact.getArtifactId(),
                    artifact.getVersion(),
                    artifact.getType(),
                    artifact.getClassifier(),
                    artifact.getDownloadUrl(),
                    artifact.getDependencyTrail()));
        }

        buffer.append("----------").append(LS);

        int size = artifacts.size();

        buffer.append(size).append(" required artifact");

        if (size > 1) {
            buffer.append("s are");
        } else {
            buffer.append(" is");
        }

        buffer.append(" missing.").append(LS).append(LS).append("for artifact: ");

        return buffer.toString();
    
<methods>public void <init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, List<org.apache.maven.artifact.repository.ArtifactRepository>, List<java.lang.String>, java.lang.Throwable) ,public void <init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable) ,public void <init>(java.lang.String, org.apache.maven.artifact.Artifact) ,public void <init>(java.lang.String, org.apache.maven.artifact.Artifact, List<org.apache.maven.artifact.repository.ArtifactRepository>) ,public void <init>(java.lang.String, org.apache.maven.artifact.Artifact, java.lang.Throwable) ,public void <init>(java.lang.String, org.apache.maven.artifact.Artifact, List<org.apache.maven.artifact.repository.ArtifactRepository>, java.lang.Throwable) <variables>