info.magnolia.nodebuilder
Class StrictErrorHandler

java.lang.Object
  extended by info.magnolia.nodebuilder.AbstractErrorHandler
      extended by info.magnolia.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:
$Revision: $ ($Author: $)
Author:
gjoseph

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.
 void report(String message, Throwable cause)
          Default implementation dropping the cause for those handlers that care only about the message.
 
Methods inherited from class info.magnolia.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

report

public void report(String message,
                   Throwable cause)
            throws NodeOperationException
Description copied from class: AbstractErrorHandler
Default implementation dropping the cause for those handlers that care only about the message.

Specified by:
report in interface ErrorHandler
Overrides:
report in class AbstractErrorHandler
Throws:
NodeOperationException


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