protected void error(final String message, final Exception e) {
        if (errorReceiverProxy != null) {
            errorReceiverProxy.log(Severity.ERROR, null, getElementId(), message, e);
        } else {
            LOGGER.error(message, e);
        }
    }
Method to allow subclasses to insert segment markers between records.
stroom-pipeline/src/main/java/stroom/pipeline/writer/AbstractAppender.java