org.hibernate.search.exception.impl
Class LogErrorHandler
java.lang.Object
org.hibernate.search.exception.impl.LogErrorHandler
- All Implemented Interfaces:
- ErrorHandler
public class LogErrorHandler
- extends Object
- implements ErrorHandler
- Since:
- 3.2
- Author:
- Amin Mohammed-Coleman, Sanne Grinovero
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogErrorHandler
public LogErrorHandler()
handle
public void handle(ErrorContext context)
- Specified by:
handle
in interface ErrorHandler
appendFailureMessage
public static final void appendFailureMessage(StringBuilder message,
LuceneWork workThatFailed)
handleException
public void handleException(String errorMsg,
Throwable exception)
- Description copied from interface:
ErrorHandler
- Suited to handle a single Exception, where no ErrorContext is needed.
- Specified by:
handleException
in interface ErrorHandler
- Parameters:
errorMsg
- any description which could be useful to identify what was happeningexception
- the error to be handled
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved