Class WrappingErrorHandler

  • All Implemented Interfaces:
    org.hibernate.search.exception.ErrorHandler
    Direct Known Subclasses:
    AffinityErrorHandler

    public abstract class WrappingErrorHandler
    extends Object
    implements org.hibernate.search.exception.ErrorHandler
    Wraps another Hibernate Search ErrorHandler allowing extra processing of the backend error.
    Since:
    9.0
    • Constructor Detail

      • WrappingErrorHandler

        public WrappingErrorHandler​(org.hibernate.search.exception.ErrorHandler errorHandler)
    • Method Detail

      • handle

        public void handle​(org.hibernate.search.exception.ErrorContext context)
        Specified by:
        handle in interface org.hibernate.search.exception.ErrorHandler
      • handleException

        public void handleException​(String errorMsg,
                                    Throwable exception)
        Specified by:
        handleException in interface org.hibernate.search.exception.ErrorHandler
      • errorOccurred

        protected abstract boolean errorOccurred​(org.hibernate.search.exception.ErrorContext context)
      • unwrap

        public org.hibernate.search.exception.ErrorHandler unwrap()