class HttpServices {

    static boolean shouldLogException(Throwable t) {
        if (t instanceof InterruptedException) {
            // ignore, probably just termination
            logger.debug(t.getMessage(), t);
            return false;
        }
        if (t instanceof IOException && BROWSER_DISCONNECT_MESSAGES.contains(t.getMessage())) {
            // ignore, just a browser disconnect
            logger.debug(t.getMessage(), t);
            return false;
        }
        if (t instanceof ClosedChannelException) {
            // ignore, just a browser disconnect
            logger.debug(t.getMessage(), t);
            return false;
        }
        return true;
    }

    private  HttpServices();

}