uk.co.mruoc.jsonapi.error.UnprocessableEntityError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-json-api Show documentation
Show all versions of jackson-json-api Show documentation
Library containing jackson module and classes to help building APIs that follow the json api spec in Java
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