private void addException(Exception e) {
        String message;
        if (e.getMessage() != null) {
            message = e.getMessage().replaceAll("\"", "'");
        } else {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            e.printStackTrace(pw);
            message = "(no message) " + sw;
        }
        addError("ERROR: " + message);
    }
Base class for unpacking document operation streams and pushing to feed
access points.

@author Thomas Gundersen
@author steinar
vespaclient-core/src/main/java/com/yahoo/feedapi/Feeder.java