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

com.emc.vipr.model.catalog.ValidationError Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2015 EMC Corporation
 * All Rights Reserved
 */
package com.emc.vipr.model.catalog;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class ValidationError {

    private String field;
    private String error;

    public ValidationError() {
    }

    public ValidationError(String field, String error) {
        super();
        this.field = field;
        this.error = error;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    @Override
    public String toString() {
        return String.format("%s: %s", field, error);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy