tech.jhipster.lite.module.infrastructure.secondary.UnknownFileToDeleteException Maven / Gradle / Ivy
package tech.jhipster.lite.module.infrastructure.secondary;
import tech.jhipster.lite.module.domain.JHipsterProjectFilePath;
import tech.jhipster.lite.shared.error.domain.GeneratorException;
class UnknownFileToDeleteException extends GeneratorException {
public UnknownFileToDeleteException(JHipsterProjectFilePath file) {
super(badRequest(ModuleSecondaryErrorKey.UNKNOWN_FILE_TO_DELETE).message(buildMessage(file)).addParameter("file", file.get()));
}
private static String buildMessage(JHipsterProjectFilePath file) {
return "File to delete %s, can't be found".formatted(file.get());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy