@@ -0,0 +1,766 @@
+package org.aslak.github.merge.rest.jaxrs;%0A%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0Aimport javax.ws.rs.ext.ExceptionMapper;%0Aimport javax.ws.rs.ext.Provider;%0A%0A@Provider%0Apublic class CatchAllExceptionMapper implements ExceptionMapper%3CThrowable%3E %7B%0A%0A    @Override%0A    public Response toResponse(Throwable exception) %7B%0A        return Response.status(Response.Status.INTERNAL_SERVER_ERROR)%0A            .header(%22Content-Type%22, MediaType.APPLICATION_JSON)%0A            .entity(%0A                    new StringBuilder()%0A                        .append(%22%7B%5Cn%22)%0A                            .append(%22%5C%22message%5C%22: %22).append(exception.getMessage()).append(%22%5C%22,%22)%0A                        .append(%22%7D%5Cn%22)%0A                    )%0A            .build();%0A    %7D%0A%7D%0A

Add catch all Exception maper