Interface ErrorHandler

All Known Implementing Classes:
AlwaysFailErrorHandler, CronJobErrorHandler

public interface ErrorHandler
An ErrorHandler is used for evaluating an ImpEx error and finding an decision concerning the further processing. Currently it is used for processing an import using the Importer class.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Enumeration of possible results when processing ImpEx errors.
  • Method Summary

    Modifier and Type
    Method
    Description
    Evaluated the given error and finds a decision concerning the further ImpEx processing.
  • Method Details

    • handleError

      ErrorHandler.RESULT handleError(ImpExException exception, ImpExReader reader)
      Evaluated the given error and finds a decision concerning the further ImpEx processing. Possible results are continuing of processing or stopping and throwing the error. For evaluation of the given error, the input reader instance is given.
      Parameters:
      exception - the ImpEx error occurred while ImpEx process
      reader - the input reader instance for getting further informations of the current process
      Returns:
      the decision concerning further processing