com.casualsuperman.portent.exceptions.FailedToMoveTemplateResultsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of generator Show documentation
Show all versions of generator Show documentation
The meat and potatoes of the Portent code generator
package com.casualsuperman.portent.exceptions;
import com.casualsuperman.portent.Artifact;
import lombok.Getter;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@Getter
@SuppressWarnings("squid:S1948")
public class FailedToMoveTemplateResultsException extends EnvironmentException {
private final Map failures;
public FailedToMoveTemplateResultsException(Map failures) {
super("failed to move results to their target location", failures.values().iterator().next());
this.failures = Collections.unmodifiableMap(new HashMap<>(failures));
}
}