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

com.erigir.wrench.ape.exception.BadJsonException Maven / Gradle / Ivy

There is a newer version: 2.2.16+16
Show newest version
package com.erigir.wrench.ape.exception;

import com.erigir.wrench.ape.http.ApeException;
import com.fasterxml.jackson.core.JsonLocation;

/**
 * Created by chrweiss on 6/28/14.
 */
@ApeException(
        httpStatusCode = 400,
        detailCode = 100,
        message = "There was a problem with the data submitted",
        developerMessage = "The JSON submitted does not match the schema for this endpoint",
        detailObjectPropertyName = "location"
)
public class BadJsonException extends RuntimeException {
    private JsonLocation location;

    public BadJsonException(JsonLocation location) {
        this.location = location;
    }

    public JsonLocation getLocation() {
        return location;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy