class GenericExceptionMapper implements ExceptionMapper<Exception> {

    private static final Logger logger = LoggerFactory.getLogger(GenericExceptionMapper.class);

    @Override
    public Response toResponse(final Exception e) {<FILL_FUNCTION_BODY>}

}

        logger.log(Level.WARNING, "Exception while processing request", e);

        return ExceptionMapperUtils.toResponse(Response.Status.INTERNAL_SERVER_ERROR, e);
    
<no_super_class>