Class CronJobErrorHandler
java.lang.Object
de.hybris.platform.impex.jalo.cronjob.CronJobErrorHandler
- All Implemented Interfaces:
ErrorHandler
An
ErrorHandler designed for CronJobs. An CronJob already has an enumaration
value for defining the error mode. Possible values are fail, pause and ignore. This ErrorHandler uses
this value for finding an decision concerning the error processing. The following mapping will be used:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.impex.jalo.ErrorHandler
ErrorHandler.RESULT -
Constructor Summary
ConstructorsConstructorDescriptionCronJobErrorHandler(CronJob cronjob) Creates a new instance with givenCronJobused for error evaluation. -
Method Summary
Modifier and TypeMethodDescriptionhandleError(ImpExException impexException, ImpExReader reader) Evaluated the given error and finds a decision concerning the further ImpEx processing.
-
Constructor Details
-
CronJobErrorHandler
Creates a new instance with givenCronJobused for error evaluation.- Parameters:
cronjob- instance used for evaluating the error decision
-
-
Method Details
-
handleError
Description copied from interface:ErrorHandlerEvaluated 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.- Specified by:
handleErrorin interfaceErrorHandler- Parameters:
impexException- the ImpEx error occurred while ImpEx processreader- the input reader instance for getting further informations of the current process- Returns:
- the decision concerning further processing
-