Class LoggingSchemaErrorHandler

    • Method Detail

      • handle

        public void handle​(org.slf4j.Logger log,
                           String message,
                           Throwable exception)
        Description copied from interface: SchemaErrorHandler
        Handle schema error. Implementation is free to log the error, ignore the error or do anything else. If the error is not ignored then implementation should remember the error and reflect that in its state. Other methods of this interface should behave in accord with that state.
        Specified by:
        handle in interface SchemaErrorHandler
        Parameters:
        log - Logger that could be used to record error messages.
        message - Error message.
        exception - Exception (if available). Exception may provide more structured description of the error. But it may not be available for all error states. However, only those invocations of handle() method that contain an exceptions are considered to be errors. The implementation may ignore any invocations that do not contain exception.
      • wasError

        public boolean wasError()
        Description copied from interface: SchemaErrorHandler
        Returns true if the implementation handled at least one error. This method is used for checks whether the schema processing should proceed or stop, e.g. in cases when we want to stop processing on errors.
        Specified by:
        wasError in interface SchemaErrorHandler
        Returns:
        true if at least one error was met