org.hibernate.search.exception.ErrorHandler Maven / Gradle / Ivy
/*
* 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;
/**
* @author Amin Mohammed-Coleman
* @since 3.2
*/
public interface ErrorHandler {
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