org.apache.cocoon.components.treeprocessor
Class TreeProcessorSitemapErrorHandler

java.lang.Object
  extended byorg.apache.cocoon.components.treeprocessor.TreeProcessorSitemapErrorHandler
All Implemented Interfaces:
org.apache.cocoon.sitemap.SitemapErrorHandler

public class TreeProcessorSitemapErrorHandler
extends Object
implements org.apache.cocoon.sitemap.SitemapErrorHandler

Class providing error handling capabilities to the pipeline as configured in the sitemap.

Since:
2.2
Version:
$Id: TreeProcessorSitemapErrorHandler.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
TreeProcessorSitemapErrorHandler(ErrorHandlerHelper handler, org.apache.cocoon.environment.Environment environment, InvokeContext context)
          Construct error handler with everything needed to handle an error.
 
Method Summary
 boolean handleError(Exception e)
          Handle an error.
 org.apache.cocoon.components.pipeline.ProcessingPipeline prepareErrorPipeline(Exception e)
          Build error handling pipeline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeProcessorSitemapErrorHandler

public TreeProcessorSitemapErrorHandler(ErrorHandlerHelper handler,
                                        org.apache.cocoon.environment.Environment environment,
                                        InvokeContext context)
Construct error handler with everything needed to handle an error.

Method Detail

handleError

public boolean handleError(Exception e)
                    throws Exception
Handle an error.

Specified by:
handleError in interface org.apache.cocoon.sitemap.SitemapErrorHandler
Returns:
true if error was handled.
Throws:
Exception

prepareErrorPipeline

public org.apache.cocoon.components.pipeline.ProcessingPipeline prepareErrorPipeline(Exception e)
                                                                              throws Exception
Build error handling pipeline.

Specified by:
prepareErrorPipeline in interface org.apache.cocoon.sitemap.SitemapErrorHandler
Returns:
error handling pipeline, or null if error was not handled.
Throws:
Exception


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.