private static Exception getAbortedException() { return new AbortedException("Reader aborted"); } }
@Override public void onAbort(Throwable e) { if (e.getClass().equals(AbortedException.class)) { e = new com.linkedin.entitystream.AbortedException(e.getMessage(), e); } _writer.onAbort(e); } }
@Override public void onError(Throwable e) { if (e.getClass().equals(AbortedException.class)) { e = new com.linkedin.entitystream.AbortedException(e.getMessage(), e); } _observer.onError(e); } }