package dk.thoerup.webservice; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response; public class PersonNotFoundException extends WebApplicationException { private static final long serialVersionUID = 1L; /** * Create a HTTP 404 (Not Found) exception. */ public PersonNotFoundException() { super( Response.status(Response.Status.NOT_FOUND). entity("Person not found"). type("text/plain").build() ); } /** * Create a HTTP 404 (Not Found) exception. * @param message the String that is the entity of the 404 response. */ /* public PersonNotFoundException(String message) { super( Response.status(Response.Status.NOT_FOUND). entity("Person not found"). type("text/plain").build() ); }*/ }