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

tech.jhipster.lite.shared.enumeration.domain.UnmappableEnumException Maven / Gradle / Ivy

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

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

class UnmappableEnumException extends GeneratorException {

  public , U extends Enum> UnmappableEnumException(Class from, Class to) {
    super(internalServerError(EnumsErrorKey.UNMAPPABLE_ENUM).message("Can't map " + from + " to " + to));
  }
}