package org.jboss.pnc.causeway;

import org.jboss.pnc.causeway.rest.model.response.ArtifactImportError;

import java.util.List;

import lombok.Getter;

/**
 * This class indicates just a failure, which can usually be solved by user themselve.
 *
 * @author Honza Brázdil <jbrazdil@redhat.com>
 */
public class CausewayFailure extends CausewayException {

    @Getter
    private List<ArtifactImportError> artifactErrors;

    public CausewayFailure(String format, Throwable cause, Object... params) {
        super(format, cause, params);
    }

    public CausewayFailure(String format, Object... params) {
        super(format, params);
    }

    public CausewayFailure(List<ArtifactImportError> artifactErrors, String format, Object... params) {
        super(format, params);
        this.artifactErrors = artifactErrors;
    }

}

@@ -631,32 +631,244 @@
 params);%0A    %7D%0A%0A
+    public CausewayFailure(List%3CArtifactImportError%3E artifactErrors, String format, Throwable cause, Object... params) %7B%0A        super(format, cause, params);%0A        this.artifactErrors = artifactErrors;%0A    %7D%0A%0A
     public Cause

Add CausewayFailure constructor