1 package org.onap.msb.apiroute.api.exception;
3 import javax.ws.rs.ClientErrorException;
4 import javax.ws.rs.core.MediaType;
5 import javax.ws.rs.core.Response;
7 import org.apache.http.HttpStatus;
9 public class UnprocessableEntityException extends ClientErrorException{
10 private static final long serialVersionUID = -8266622745725405656L;
12 public UnprocessableEntityException(final String message) {
13 super(Response.status(HttpStatus.SC_UNPROCESSABLE_ENTITY).entity(message).type(MediaType.TEXT_PLAIN).build());