Package org.infinispan.query.backend
Class WrappingErrorHandler
- java.lang.Object
-
- org.infinispan.query.backend.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 SearchErrorHandler
allowing extra processing of the backend error.- Since:
- 9.0
-
-
Constructor Summary
Constructors Constructor Description WrappingErrorHandler(org.hibernate.search.exception.ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
errorOccurred(org.hibernate.search.exception.ErrorContext context)
void
handle(org.hibernate.search.exception.ErrorContext context)
void
handleException(String errorMsg, Throwable exception)
org.hibernate.search.exception.ErrorHandler
unwrap()
-
-
-
Method Detail
-
handle
public void handle(org.hibernate.search.exception.ErrorContext context)
- Specified by:
handle
in interfaceorg.hibernate.search.exception.ErrorHandler
-
handleException
public void handleException(String errorMsg, Throwable exception)
- Specified by:
handleException
in interfaceorg.hibernate.search.exception.ErrorHandler
-
errorOccurred
protected abstract boolean errorOccurred(org.hibernate.search.exception.ErrorContext context)
-
unwrap
public org.hibernate.search.exception.ErrorHandler unwrap()
-
-