@Override
    public Response toResponse(WebApplicationException ex) {
        return Response.status(ex.getResponse().getStatus()).entity(new ErrorMessage(ex.getResponse().getStatus(), ex.getMessage())).type(
            MediaType.APPLICATION_JSON_TYPE).build();
    }
@ Override public Response toResponse ( WebApplicationException ex ) { return Response . status ( ex . getResponse ( ) . getStatus ( ) ) . entity ( new ErrorMessage ( ex . getResponse ( ) . getStatus ( ) , ex . getMessage ( ) ) ) . type ( MediaType . APPLICATION_JSON_TYPE ) . build ( ) ; }
~ Methods **************************************************************************************************************************************