List of usage examples for org.springframework.batch.core UnexpectedJobExecutionException UnexpectedJobExecutionException
public UnexpectedJobExecutionException(String msg)
From source file:kr.okplace.job.support.ExceptionThrowingItemReaderProxy.java
public T read() throws Exception { counter++;/*from w w w. ja va 2s .c om*/ if (counter == throwExceptionOnRecordNumber) { throw new UnexpectedJobExecutionException("Planned failure on count=" + counter); } return delegate.read(); }