|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.treeprocessor.sitemap.ErrorHandlerHelper
public class ErrorHandlerHelper
Helps to call error handlers from PipelineNode and PipelinesNode.
| Field Summary | |
|---|---|
protected Logger |
handledErrorsLogger
Logger for handled errors |
| Constructor Summary | |
|---|---|
ErrorHandlerHelper()
|
|
| Method Summary | |
|---|---|
void |
compose(ComponentManager manager)
The component manager is used to create notifying builders. |
void |
enableLogging(Logger logger)
|
boolean |
invokeErrorHandler(Exception ex,
Environment env,
InvokeContext context)
Handle error. |
boolean |
invokeErrorHandler(ProcessingNode node,
Exception ex,
Environment env,
InvokeContext context)
Handle error using specified error handler processing node. |
boolean |
isEmpty()
|
boolean |
isExternal()
|
boolean |
isInternal()
|
ProcessingPipeline |
prepareErrorHandler(Exception ex,
Environment env,
InvokeContext context)
Prepare error handler for the internal pipeline error handling. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Logger handledErrorsLogger
| Constructor Detail |
|---|
public ErrorHandlerHelper()
| Method Detail |
|---|
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledenableLogging in class AbstractLogEnabledpublic void compose(ComponentManager manager)
compose in interface Composablepublic boolean isEmpty()
public boolean isInternal()
public boolean isExternal()
public boolean invokeErrorHandler(Exception ex,
Environment env,
InvokeContext context)
throws Exception
Exception
public ProcessingPipeline prepareErrorHandler(Exception ex,
Environment env,
InvokeContext context)
throws Exception
If building pipeline only, error handling pipeline will be built and returned. If building and executing pipeline, error handling pipeline will be built and executed.
Exception
public boolean invokeErrorHandler(ProcessingNode node,
Exception ex,
Environment env,
InvokeContext context)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||