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

uk.co.mruoc.jsonapi.error.UnprocessableEntityError Maven / Gradle / Ivy

Go to download

Library containing jackson module and classes to help building APIs that follow the json api spec in Java

There is a newer version: 2.0.16
Show newest version
package uk.co.mruoc.jsonapi.error;

import java.util.Collections;
import java.util.Map;
import java.util.UUID;

public class UnprocessableEntityError extends ApiError {

    private static final String STATUS = "422";

    public UnprocessableEntityError(final String title, final String detail) {
        this(UUID.randomUUID(), title, detail);
    }

    public UnprocessableEntityError(final UUID id, final String title, final String detail) {
        this(id, title, detail, Collections.emptyMap());
    }

    public UnprocessableEntityError(final UUID id, final String title, final String detail, final Map meta) {
        super(id, STATUS, title, detail, meta);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy