info.magnolia.jcr.nodebuilder
Class StrictErrorHandler

java.lang.Object
  extended by info.magnolia.jcr.nodebuilder.AbstractErrorHandler
      extended by info.magnolia.jcr.nodebuilder.StrictErrorHandler
All Implemented Interfaces:
ErrorHandler

public class StrictErrorHandler
extends AbstractErrorHandler

An ErrorHandler which interrupts operations as soon as one error happens, by throwing a NodeOperationException.

Version:
$Id$

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

Constructor Detail

StrictErrorHandler

public StrictErrorHandler()
Method Detail

report

public void report(String message)
            throws NodeOperationException
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, ...)

Throws:
NodeOperationException


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.