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

tech.jhipster.lite.module.infrastructure.secondary.UnknownFileToMoveException Maven / Gradle / Ivy

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

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

class UnknownFileToMoveException extends GeneratorException {

  public UnknownFileToMoveException(String filename) {
    super(badRequest(ModuleSecondaryErrorKey.UNKNOWN_FILE_TO_MOVE).message(buildMessage(filename)).addParameter("file", filename));
  }

  private static String buildMessage(String filename) {
    return "Can't move %s, can't find it in project".formatted(filename);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy