info.magnolia.nodebuilder.task
Class TaskLogErrorHandler
java.lang.Object
info.magnolia.nodebuilder.AbstractErrorHandler
info.magnolia.nodebuilder.task.TaskLogErrorHandler
- All Implemented Interfaces:
- ErrorHandler
public class TaskLogErrorHandler
- extends AbstractErrorHandler
An ErrorHandler which logs handled errors to the InstallContext
as warnings, and wraps unhandled exceptions in NodeOperationException.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Method Summary |
void |
report(String message)
The operation calling this method is expected to pass a fully formed message;
it should ideally contain some context information about the operation that
caused an issue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskLogErrorHandler
public TaskLogErrorHandler(InstallContext installCtx)
report
public void report(String message)
- Description copied from interface:
ErrorHandler
- The operation calling this method is expected to pass a fully formed message;
it should ideally contain some context information about the operation that
caused an issue. The ErrorHandler implementation will decide what to do
with it. (log, throw a NodeOperationException, ...)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.