Class CronJobErrorHandler
- java.lang.Object
-
- de.hybris.platform.impex.jalo.cronjob.CronJobErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class CronJobErrorHandler extends java.lang.Object implements ErrorHandler
AnErrorHandlerdesigned forCronJobs. AnCronJobalready has an enumaration value for defining the error mode. Possible values are fail, pause and ignore. ThisErrorHandleruses 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
Constructors Constructor Description CronJobErrorHandler(CronJob cronjob)Creates a new instance with givenCronJobused for error evaluation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorHandler.RESULThandleError(ImpExException impexException, ImpExReader reader)Evaluated the given error and finds a decision concerning the further ImpEx processing.
-
-
-
Constructor Detail
-
CronJobErrorHandler
public CronJobErrorHandler(CronJob cronjob)
Creates a new instance with givenCronJobused for error evaluation.- Parameters:
cronjob- instance used for evaluating the error decision
-
-
Method Detail
-
handleError
public ErrorHandler.RESULT handleError(ImpExException impexException, ImpExReader reader)
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
-
-