@Override public void onSkipInRead(Throwable t) { if(skipReadDelegate != null && t instanceof Exception) { try { skipReadDelegate.onSkipReadItem((Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onSkipInRead(Throwable t) { if(skipReadDelegate != null && t instanceof Exception) { try { skipReadDelegate.onSkipReadItem((Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onSkipInRead(Throwable t) { if(skipReadDelegate != null && t instanceof Exception) { try { skipReadDelegate.onSkipReadItem((Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onSkipInRead(Throwable t) { if(skipReadDelegate != null && t instanceof Exception) { try { skipReadDelegate.onSkipReadItem((Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onSkipReadItem(Exception ex) { try { this.delegate.onSkipReadItem(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onSkipReadItem(Exception ex) { try { this.delegate.onSkipReadItem(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onSkipReadItem(Exception ex) { try { this.delegate.onSkipReadItem(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
/** * Handle exception from a read failure. */ public void handleExceptionRead(Exception e) { if (isSkipLimitReached() || !isSkippable(e)) { throw new BatchContainerRuntimeException(e); } // Skip it. Log it. Call the SkipListener. ++_skipCount; if (_skipReadListener != null) { for (final SkipReadListener skipReadListenerProxy : _skipReadListener) { try { skipReadListenerProxy.onSkipReadItem(e); } catch (Exception e1) { ExceptionConfig.wrapBatchException(e1); } } } }
if (processingInfo.itemState == ItemState.TO_SKIP) { for (final SkipReadListener l : skipReadListeners) { l.onSkipReadItem(e);