All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.module.domain.docker.UnknownDockerImageException Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.module.domain.docker;

import tech.jhipster.lite.shared.error.domain.GeneratorException;

public class UnknownDockerImageException extends GeneratorException {

  public UnknownDockerImageException(DockerImageName imageName) {
    super(
      internalServerError(DockerErrorKey.UNKNOWN_DOCKER_IMAGE).message(buildMessage(imageName)).addParameter("imageName", imageName.get())
    );
  }

  private static String buildMessage(DockerImageName imageName) {
    return new StringBuilder()
      .append("Can't find image ")
      .append(imageName.get())
      .append(", forgot to add it to src/main/resources/generator/dependencies/Dockerfile?")
      .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy