Class AlwaysFailErrorHandler

  • All Implemented Interfaces:
    ErrorHandler

    public class AlwaysFailErrorHandler
    extends java.lang.Object
    implements ErrorHandler
    This handler will always evaluate an negative decision concerning an error, means it will always return with ErrorHandler.RESULT.FAIL.
    • Constructor Detail

      • AlwaysFailErrorHandler

        public AlwaysFailErrorHandler()
    • Method Detail

      • handleError

        public ErrorHandler.RESULT handleError​(ImpExException exception,
                                               ImpExReader reader)
        Description copied from interface: ErrorHandler
        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.
        Specified by:
        handleError in interface ErrorHandler
        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