@Override public void onSkipInProcess(T item, Throwable t) { if(skipProcessDelegate != null && t instanceof Exception) { try { skipProcessDelegate.onSkipProcessItem(item, (Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } } }
@Override public void onSkipInProcess(T item, Throwable t) { if(skipProcessDelegate != null && t instanceof Exception) { try { skipProcessDelegate.onSkipProcessItem(item, (Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } } }
@Override public void onSkipInProcess(T item, Throwable t) { if(skipProcessDelegate != null && t instanceof Exception) { try { skipProcessDelegate.onSkipProcessItem(item, (Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } } }
@Override public void onSkipInProcess(T item, Throwable t) { if(skipProcessDelegate != null && t instanceof Exception) { try { skipProcessDelegate.onSkipProcessItem(item, (Exception) t); } catch (Exception e) { throw new BatchRuntimeException(e); } } } }
@Override public void onSkipProcessItem(Object item, Exception ex) { try { this.delegate.onSkipProcessItem(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onSkipProcessItem(Object item, Exception ex) { try { this.delegate.onSkipProcessItem(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onSkipProcessItem(Object item, Exception ex) { try { this.delegate.onSkipProcessItem(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
/** * Handle exception from a process failure. */ public void handleExceptionWithRecordProcess(final Exception e, final Object w) { if (isSkipLimitReached() || !isSkippable(e)) { throw new BatchContainerRuntimeException(e); } // Skip it. Log it. Call the SkipProcessListener. ++_skipCount; if (_skipProcessListener != null) { for (SkipProcessListener skipProcessListenerProxy : _skipProcessListener) { try { skipProcessListenerProxy.onSkipProcessItem(w, e); } catch (Exception e1) { ExceptionConfig.wrapBatchException(e1); } } } }
if (processingInfo.itemState == ItemState.TO_SKIP) { for (final SkipProcessListener l : skipProcessListeners) { l.onSkipProcessItem(itemRead, e);