generator.server.springboot.webflux.web.main.FieldErrorDTO.mustache Maven / Gradle / Ivy
package {{packageName}}.shared.error.infrastructure.primary;
import java.io.Serial;
import java.io.Serializable;
public class FieldErrorDTO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private final String objectName;
private final String field;
private final String message;
public FieldErrorDTO(String dto, String field, String message) {
this.objectName = dto;
this.field = field;
this.message = message;
}
public String getObjectName() {
return objectName;
}
public String getField() {
return field;
}
public String getMessage() {
return message;
}
}