info.magnolia.jcr.nodebuilder
Class AbstractErrorHandler

java.lang.Object
  extended by info.magnolia.jcr.nodebuilder.AbstractErrorHandler
All Implemented Interfaces:
ErrorHandler
Direct Known Subclasses:
StrictErrorHandler, TaskLogErrorHandler

public abstract class AbstractErrorHandler
extends Object
implements ErrorHandler

Provides basic behavior for ErrorHandlers.


Constructor Summary
AbstractErrorHandler()
           
 
Method Summary
 void handle(javax.jcr.RepositoryException e, javax.jcr.Node context)
          The operation calling this method isn't expected to do anything here; the ErrorHandler implementation will attempt to build a fully formed message, then decide what to do with it.
protected  void unhandledRepositoryException(javax.jcr.RepositoryException e, javax.jcr.Node context)
          Override this method if you need finer grained control on RepositoryExceptions that haven't been handled by the handle() method yet, or if you want to try and keep on proceeding anyway.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.jcr.nodebuilder.ErrorHandler
report
 

Constructor Detail

AbstractErrorHandler

public AbstractErrorHandler()
Method Detail

handle

public void handle(javax.jcr.RepositoryException e,
                   javax.jcr.Node context)
            throws NodeOperationException,
                   javax.jcr.RepositoryException
Description copied from interface: ErrorHandler
The operation calling this method isn't expected to do anything here; the ErrorHandler implementation will attempt to build a fully formed message, then decide what to do with it. (log, throw a NodeOperationException, ...)

Specified by:
handle in interface ErrorHandler
Throws:
NodeOperationException
javax.jcr.RepositoryException

unhandledRepositoryException

protected void unhandledRepositoryException(javax.jcr.RepositoryException e,
                                            javax.jcr.Node context)
                                     throws NodeOperationException,
                                            javax.jcr.RepositoryException
Override this method if you need finer grained control on RepositoryExceptions that haven't been handled by the handle() method yet, or if you want to try and keep on proceeding anyway.

Throws:
NodeOperationException
javax.jcr.RepositoryException


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