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

tech.jhipster.lite.module.domain.replacement.UnknownCurrentValueException Maven / Gradle / Ivy

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

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

class UnknownCurrentValueException extends GeneratorException {

  public UnknownCurrentValueException(String currentValue, String content) {
    super(badRequest(ReplacementErrorKey.UNKNOWN_CURRENT_VALUE).message(buildMessage(currentValue, content)));
  }

  private static String buildMessage(String currentValue, String content) {
    return "Can't find \"%s\" in %s".formatted(currentValue, content);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy