info.magnolia.jcr.nodebuilder
Interface ErrorHandler

All Known Implementing Classes:
AbstractErrorHandler, StrictErrorHandler

public interface ErrorHandler

ErrorHandler implementations can decide what to do with certain conditions. Specifically, they'll usually log or throw exceptions. They can only throw NodeOperationException (or other RuntimeExceptions, obviously), which the client code is expected to handle.

Version:
$Id$

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.
 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.
 

Method Detail

report

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

handle

void handle(javax.jcr.RepositoryException e,
            javax.jcr.Node context)
            throws NodeOperationException,
                   javax.jcr.RepositoryException
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, ...)

Throws:
NodeOperationException
javax.jcr.RepositoryException


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