info.magnolia.nodebuilder.task
Class TaskLogErrorHandler

java.lang.Object
  extended by info.magnolia.nodebuilder.AbstractErrorHandler
      extended by 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

Constructor Summary
TaskLogErrorHandler(InstallContext installCtx)
           
 
Method Summary
 void report(java.lang.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 info.magnolia.nodebuilder.AbstractErrorHandler
handle, report, unhandledRepositoryException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskLogErrorHandler

public TaskLogErrorHandler(InstallContext installCtx)
Method Detail

report

public void report(java.lang.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-2011 Magnolia International Ltd.. All Rights Reserved.