org.codehaus.plexus.summit.exception
Interface ExceptionHandler

All Known Implementing Classes:
DefaultExceptionHandler

public interface ExceptionHandler

Interface that defines an exception handler for the Summit servlet. If a throwable is thrown by the pipeline, the servlet will pass the Throwable and RunData to the handleException method of the configured ExceptionHandler to deal with.

Version:
$Id: ExceptionHandler.java 2083 2005-06-05 03:01:09Z jvanzyl $
Author:
James Taylor

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 void handleException(RunData data, java.lang.Throwable throwable)
          This method will be called to handle a throwable thrown by the pipeline
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

handleException

public void handleException(RunData data,
                            java.lang.Throwable throwable)
                     throws java.lang.Exception
This method will be called to handle a throwable thrown by the pipeline

Parameters:
data - RunData for the request where the error occured
throwable - The throwable that was thrown
Throws:
java.lang.Exception