info.magnolia.nodebuilder
Class AbstractErrorHandler
java.lang.Object
info.magnolia.nodebuilder.AbstractErrorHandler
- All Implemented Interfaces:
- ErrorHandler
- Direct Known Subclasses:
- StrictErrorHandler, TaskLogErrorHandler
public abstract class AbstractErrorHandler
- extends java.lang.Object
- implements ErrorHandler
Provides a basic behaviour for ErrorHandlers.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Method Summary |
void |
handle(javax.jcr.RepositoryException e,
Content 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(java.lang.String message,
java.lang.Throwable cause)
Default implementation dropping the cause for those handlers that care only about the message. |
protected void |
unhandledRepositoryException(javax.jcr.RepositoryException e,
Content 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 |
AbstractErrorHandler
public AbstractErrorHandler()
handle
public void handle(javax.jcr.RepositoryException e,
Content context)
throws NodeOperationException
- 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
unhandledRepositoryException
protected void unhandledRepositoryException(javax.jcr.RepositoryException e,
Content context)
throws NodeOperationException
- 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
report
public void report(java.lang.String message,
java.lang.Throwable cause)
throws NodeOperationException
- Default implementation dropping the cause for those handlers that care only about the message.
- Specified by:
report
in interface ErrorHandler
- Throws:
NodeOperationException
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.