@@ -0,0 +1,974 @@
+package com.github.rinfield.ex_mapper;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.PrintStream;%0Aimport java.nio.charset.StandardCharsets;%0A%0Aimport javax.ws.rs.core.Response;%0Aimport javax.ws.rs.ext.ExceptionMapper;%0Aimport javax.ws.rs.ext.Provider;%0A%0A@Provider%0Apublic class UncatchedExceptionMapper implements ExceptionMapper%3CException%3E %7B%0A%0A    @Override%0A    public Response toResponse(final Exception handlingEx) %7B%0A        handlingEx.printStackTrace();%0A        String responseInfo = handlingEx.getMessage();%0A        try (final ByteArrayOutputStream byteStream = new ByteArrayOutputStream();%0A            PrintStream printStream = new PrintStream(byteStream)) %7B%0A            handlingEx.printStackTrace(printStream);%0A            responseInfo = byteStream.toString(StandardCharsets.UTF_8.name());%0A        %7D catch (final IOException e) %7B%0A            // ignore%0A        %7D%0A        return Response.serverError().entity(responseInfo).build();%0A    %7D%0A%7D%0A

add Sample ExceptionMapper