Tabnine Logo
NonSkippableReadException
Code IndexAdd Tabnine to your IDE (free)

How to use
NonSkippableReadException
in
org.springframework.batch.core.step.skip

Best Java code snippets using org.springframework.batch.core.step.skip.NonSkippableReadException (Showing top 6 results out of 315)

origin: spring-projects/spring-batch

@Override
public Exception getException(String msg, Throwable e) throws Exception {
  return new NonSkippableReadException(msg, e);
}
origin: spring-projects/spring-batch

@Override
protected I read(StepContribution contribution, Chunk<I> chunk) throws Exception {
  while (true) {
    try {
      return doRead();
    }
    catch (Exception e) {
      if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
        // increment skip count and try again
        contribution.incrementReadSkipCount();
        chunk.skip(e);
        if (chunk.getErrors().size() >= maxSkipsOnRead) {
          throw new SkipOverflowException("Too many skips on read");
        }
        logger.debug("Skipping failed input", e);
      }
      else {
        if (rollbackClassifier.classify(e)) {
          throw new NonSkippableReadException("Non-skippable exception during read", e);
        }
        logger.debug("No-rollback for non-skippable exception (ignored)", e);
      }
    }
  }
}
origin: org.springframework.batch/spring-batch-core

@Override
protected I read(StepContribution contribution, Chunk<I> chunk) throws Exception {
  while (true) {
    try {
      return doRead();
    }
    catch (Exception e) {
      if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
        // increment skip count and try again
        contribution.incrementReadSkipCount();
        chunk.skip(e);
        if (chunk.getErrors().size() >= maxSkipsOnRead) {
          throw new SkipOverflowException("Too many skips on read");
        }
        logger.debug("Skipping failed input", e);
      }
      else {
        if (rollbackClassifier.classify(e)) {
          throw new NonSkippableReadException("Non-skippable exception during read", e);
        }
        logger.debug("No-rollback for non-skippable exception (ignored)", e);
      }
    }
  }
}
origin: org.springframework.batch/org.springframework.batch.core

@Override
protected I read(StepContribution contribution, Chunk<I> chunk) throws Exception {
  while (true) {
    try {
      return doRead();
    }
    catch (Exception e) {
      if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
        // increment skip count and try again
        contribution.incrementReadSkipCount();
        chunk.skip(e);
        if (chunk.getErrors().size() >= maxSkipsOnRead) {
          throw new SkipOverflowException("Too many skips on read");
        }
        logger.debug("Skipping failed input", e);
      }
      else {
        if (rollbackClassifier.classify(e)) {
          throw new NonSkippableReadException("Non-skippable exception during read", e);
        }
        logger.debug("No-rollback for non-skippable exception (ignored)", e);
      }
    }
  }
}
origin: apache/servicemix-bundles

@Override
protected I read(StepContribution contribution, Chunk<I> chunk) throws Exception {
  while (true) {
    try {
      return doRead();
    }
    catch (Exception e) {
      if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
        // increment skip count and try again
        contribution.incrementReadSkipCount();
        chunk.skip(e);
        if (chunk.getErrors().size() >= maxSkipsOnRead) {
          throw new SkipOverflowException("Too many skips on read");
        }
        logger.debug("Skipping failed input", e);
      }
      else {
        if (rollbackClassifier.classify(e)) {
          throw new NonSkippableReadException("Non-skippable exception during read", e);
        }
        logger.debug("No-rollback for non-skippable exception (ignored)", e);
      }
    }
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
protected I read(StepContribution contribution, Chunk<I> chunk) throws Exception {
  while (true) {
    try {
      return doRead();
    }
    catch (Exception e) {
      if (shouldSkip(skipPolicy, e, contribution.getStepSkipCount())) {
        // increment skip count and try again
        contribution.incrementReadSkipCount();
        chunk.skip(e);
        if (chunk.getErrors().size() >= maxSkipsOnRead) {
          throw new SkipOverflowException("Too many skips on read");
        }
        logger.debug("Skipping failed input", e);
      }
      else {
        if (rollbackClassifier.classify(e)) {
          throw new NonSkippableReadException("Non-skippable exception during read", e);
        }
        logger.debug("No-rollback for non-skippable exception (ignored)", e);
      }
    }
  }
}
org.springframework.batch.core.step.skipNonSkippableReadException

Javadoc

Fatal exception to be thrown when a read operation could not be skipped.

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now