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

tech.jhipster.lite.shared.error.domain.StringWithWhitespacesException Maven / Gradle / Ivy

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

public class StringWithWhitespacesException extends AssertionException {

  public StringWithWhitespacesException(String field) {
    super(field, message(field));
  }

  private static String message(String field) {
    return "The field \"%s\" contains at least one space".formatted(field);
  }

  @Override
  public AssertionErrorType type() {
    return AssertionErrorType.STRING_WITH_WHITESPACES;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy