com.kenshoo.pl.entity.ValidationError Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of persistence-layer Show documentation
                Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
                
             The newest version!
        
        package com.kenshoo.pl.entity;
import java.util.Collections;
import java.util.Map;
public class ValidationError {
    private final String errorCode;
    private final EntityField, ?> field;
    private final Map parameters;
    public ValidationError(String errorCode) {
        this(errorCode, null, Collections.emptyMap());
    }
    public ValidationError(String errorCode, EntityField, ?> field) {
        this(errorCode, field, Collections.emptyMap());
    }
    public ValidationError(String errorCode, Map parameters) {
        this(errorCode, null, parameters);
    }
    public ValidationError(String errorCode, EntityField, ?> field, Map parameters) {
        this.errorCode = errorCode;
        this.field = field;
        this.parameters = parameters;
    }
    public String getErrorCode() {
        return errorCode;
    }
    public EntityField, ?> getField() {
        return field;
    }
    public Map getParameters() {
        return parameters;
    }
    @Override
    public String toString() {
        return new org.apache.commons.lang3.builder.ToStringBuilder(this)
                .append("errorCode", errorCode)
                .append("errorField", field)
                .append("parameters", parameters)
                .toString();
    }
}
          © 2015 - 2025 Weber Informatics LLC | Privacy Policy