org.hibernate.search.exception
Interface ErrorHandler

All Known Implementing Classes:
LogErrorHandler

public interface ErrorHandler

Since:
3.2
Author:
Amin Mohammed-Coleman

Method Summary
 void handle(ErrorContext context)
           
 void handleException(String errorMsg, Throwable exception)
          Suited to handle a single Exception, where no ErrorContext is needed.
 

Method Detail

handle

void handle(ErrorContext context)

handleException

void handleException(String errorMsg,
                     Throwable exception)
Suited to handle a single Exception, where no ErrorContext is needed.

Parameters:
errorMsg - any description which could be useful to identify what was happening
exception - the error to be handled
Since:
4.0


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved