Handler to allow strategies for re-throwing exceptions. Normally a CompletionPolicy will be used to decide whether to end a batch when there is no exception, and the ExceptionHandler is used to signal an abnormal ending - an abnormal ending would result in an ExceptionHandler throwing an exception. The caller will catch and re-throw it if necessary. More...
Public Member Functions | |
void | HandleException (IRepeatContext context, System.Exception exception) |
Deal with an exception during a batch - decide whether it should be re-thrown in the first place. More... | |
Detailed Description
Handler to allow strategies for re-throwing exceptions. Normally a CompletionPolicy will be used to decide whether to end a batch when there is no exception, and the ExceptionHandler is used to signal an abnormal ending - an abnormal ending would result in an ExceptionHandler throwing an exception. The caller will catch and re-throw it if necessary.
Member Function Documentation
void Summer.Batch.Infrastructure.Repeat.Exception.IExceptionHandler.HandleException | ( | IRepeatContext | context, |
System.Exception | exception | ||
) |
Deal with an exception during a batch - decide whether it should be re-thrown in the first place.
- Parameters
-
context exception
- Exceptions
-
Exception
Implemented in Summer.Batch.Infrastructure.Repeat.Exception.DefaultExceptionHandler.
The documentation for this interface was generated from the following file:
- Summer.Batch.Infrastructure/Repeat/Exception/IExceptionHandler.cs