The Apache Software Foundation is proud to present... Version: 2.1.12

Internal Requests Error Handling Samples

Orthogonal views: Content   Pretty content   Links

Back

Back - Back to the error handling samples page.

Types of Errors

Request processing in the Cocoon consists of several phases. First one is pipeline assembly phase, when sitemap processor traverses sitemaps, finds, and builds a pipeline for the request.

Second phase is the pipeline setup phase, when pipeline is initialized with the request parameters.

Third phase is the pipeline execution phase, when generator starts streaming SAX events down the pipeline, which end up in the serializer, writing bytes into the output stream.

Default Error Handling

sitemap - Exception in the sitemap during pipeline assembly phase
setup - Exception in the pipeline during setup phase
pipeline - Exception in the pipeline during processing phase

Custom Error Handling

sitemap - Exception in the sitemap during pipeline assembly phase
setup - Exception in the pipeline during setup phase
pipeline - Exception in the pipeline during processing phase

Aggregate (Default Error Handling)

Attempt to aggregate several pages, were one contains an error, with default error handling.

sitemap - Aggegate Exception in the sitemap during pipeline assembly phase
setup - Aggegate Exception in the pipeline during setup phase
pipeline - Aggegate Exception in the pipeline during processing phase

Aggregate (Custom Error Handling)

Attempt to aggregate several pages, were one contains an error, with custom error handling.

sitemap - Aggegate Exception in the sitemap during pipeline assembly phase
setup - Aggegate Exception in the pipeline during setup phase
pipeline - Aggegate Exception in the pipeline during processing phase

Include (Default Error Handling)

Attempt to include several pages, were one contains an error, with default error handling. Include happens after xslt transformation.

sitemap - Include Exception in the sitemap during pipeline assembly phase
setup - Include Exception in the pipeline during setup phase
pipeline - Include Exception in the pipeline during processing phase

Include (Custom Error Handling)

Attempt to include several pages, were one contains an error, with custom error handling. Include happens after xslt transformation.

sitemap - Include Exception in the sitemap during pipeline assembly phase
setup - Include Exception in the pipeline during setup phase
pipeline - Include Exception in the pipeline during processing phase