org.hibernate.search.exception.ErrorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.exception;
/**
* Implementations handle errors and exceptions occurring during indexing.
*
* @author Amin Mohammed-Coleman
* @since 3.2
*/
public interface ErrorHandler {
/**
* Special value to be used for the {@link org.hibernate.search.cfg.Environment#ERROR_HANDLER} configuration
* property in order to activate the logging of all errors/exceptions occurring.
*/
String LOG = "log";
void handle(ErrorContext context);
/**
* Suited to handle a single Exception, where no ErrorContext is needed.
* @since 4.0
* @param errorMsg any description which could be useful to identify what was happening
* @param exception the error to be handled
*/
void handleException(String errorMsg, Throwable exception);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy