|
|||||||||||
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
Helps to call error handlers from PipelineNode and PipelinesNode.
Field Summary | |
protected Logger |
handledErrorsLogger
Logger for handled errors |
Constructor Summary | |
ErrorHandlerHelper()
|
Method Summary | |
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()
|
Processor.InternalPipelineDescription |
prepareErrorHandler(Exception ex,
Environment env,
InvokeContext context)
Prepare error handler for the internal pipeline error handling. |
void |
service(ServiceManager manager)
The component manager is used to create notifying builders. |
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 LogEnabled
public void service(ServiceManager manager)
service
in interface Serviceable
public boolean isEmpty()
public boolean isInternal()
public boolean isExternal()
public boolean invokeErrorHandler(Exception ex, Environment env, InvokeContext context) throws Exception
Exception
public Processor.InternalPipelineDescription 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 |