info.magnolia.nodebuilder
Class StrictErrorHandler

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

Deprecated. since 4.5.18 - use StrictErrorHandler instead.

public class StrictErrorHandler
extends AbstractErrorHandler

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


Constructor Summary
StrictErrorHandler()
          Deprecated.  
 
Method Summary
 void report(String message)
          Deprecated. 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)
          Deprecated. 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()
Deprecated. 
Method Detail

report

public void report(String message)
            throws NodeOperationException
Deprecated. 
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
Deprecated. 
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–2014 Magnolia International Ltd.. All rights reserved.