blob: 28cfd178a937cb92f77642f9fbcd24d898d56eb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package org.onap.msb.apiroute.api.exception;
import javax.ws.rs.ClientErrorException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.apache.http.HttpStatus;
public class UnprocessableEntityException extends ClientErrorException{
private static final long serialVersionUID = -8266622745725405656L;
public UnprocessableEntityException(final String message) {
super(Response.status(HttpStatus.SC_UNPROCESSABLE_ENTITY).entity(message).type(MediaType.TEXT_PLAIN).build());
}
}
|