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

io.sphere.sdk.models.errors.RequiredField Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.models.errors;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * @see io.sphere.sdk.client.ErrorResponseException
 */
public class RequiredField extends SphereError {

    public static final String CODE = "RequiredField";
    private final String field;

    @JsonCreator
    private RequiredField(final String message, final String field) {
        super(CODE, message);
        this.field = field;
    }

    public static RequiredField of(final String message, final String field) {
        return new RequiredField(message, field);
    }

    public String getField() {
        return field;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy