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

io.sphere.sdk.models.errors.InvalidJsonInputError 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;

/**
 * Invalid JSON was sent to SPHERE.IO.
 */
public class InvalidJsonInputError extends SphereError {
    private final String detailedErrorMessage;

    public static final String CODE = "InvalidJsonInput";

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

    public static InvalidJsonInputError of(final String message, final String detailedErrorMessage) {
        return new InvalidJsonInputError(message, detailedErrorMessage);
    }

    public String getDetailedErrorMessage() {
        return detailedErrorMessage;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy