public class LogErrorHandler extends Object implements ErrorHandler
LOG
Constructor and Description |
---|
LogErrorHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
appendFailureMessage(StringBuilder message,
LuceneWork workThatFailed) |
void |
handle(ErrorContext context) |
void |
handleException(String errorMsg,
Throwable exception)
Suited to handle a single Exception, where no ErrorContext is needed.
|
public void handle(ErrorContext context)
handle
in interface ErrorHandler
public static final void appendFailureMessage(StringBuilder message, LuceneWork workThatFailed)
public void handleException(String errorMsg, Throwable exception)
ErrorHandler
handleException
in interface ErrorHandler
errorMsg
- any description which could be useful to identify what was happeningexception
- the error to be handledCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved