public class LogErrorHandler extends Object implements ErrorHandler
Constructor and Description |
---|
LogErrorHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
appendFailureMessage(StringBuilder message,
Object 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, Object 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-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.