Examples of addFailureException()


Examples of org.springframework.batch.core.StepExecution.addFailureException()

    } catch (JobInterruptedException e) {
      log.error("error executing step 1", e);
      stepExecution.setStatus(BatchStatus.STOPPED);
    } catch (Throwable e) {
      log.error("error executing step 2", e);
      stepExecution.addFailureException(e);
      stepExecution.setStatus(BatchStatus.FAILED);
    }

    if(log.isDebugEnabled()) {
      log.info("Finished remote step stepExecution=[" + stepExecution + "]");
View Full Code Here

Examples of org.springframework.batch.core.StepExecution.addFailureException()

    catch (JobInterruptedException e) {
      stepExecution.setStatus(BatchStatus.STOPPED);
      // The receiver should update the stepExecution in repository
    }
    catch (Throwable e) {
      stepExecution.addFailureException(e);
      stepExecution.setStatus(BatchStatus.FAILED);
      // The receiver should update the stepExecution in repository
    }

    return stepExecution;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.