org.apache.cocoon.sitemap
Class SitemapErrorHandler

java.lang.Object
  extended by org.apache.cocoon.sitemap.SitemapErrorHandler

public class SitemapErrorHandler
extends Object

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

Since:
2.1.7
Version:
$Id: SitemapErrorHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
SitemapErrorHandler(ErrorHandlerHelper handler, Environment environment, InvokeContext context)
          Construct error handler with everything needed to handle an error.
 
Method Summary
 boolean handleError(Exception e)
          Handle an error.
 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

SitemapErrorHandler

public SitemapErrorHandler(ErrorHandlerHelper handler,
                           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.

Returns:
true if error was handled.
Throws:
Exception

prepareErrorPipeline

public ProcessingPipeline prepareErrorPipeline(Exception e)
                                        throws Exception
Build error handling pipeline.

Returns:
error handling pipeline, or null if error was not handled.
Throws:
Exception


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.