org.apache.cocoon.sitemap
Class SitemapErrorHandler

java.lang.Object
  extended byorg.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.java 157555 2005-03-15 15:49:32Z vgritsenko $

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.
 Processor.InternalPipelineDescription 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 Processor.InternalPipelineDescription prepareErrorPipeline(Exception e)
                                                           throws Exception
Build error handling pipeline.

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


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.