org.gcube.contentmanagement.gcubedocumentlibrary.streams.faults
Interface IFaultPolicy<E extends java.lang.Exception>
- Type Parameters:
E - the type of fault that the handler may propagate.
- All Known Subinterfaces:
- FaultPolicy, RemoteFaultPolicy
public interface IFaultPolicy<E extends java.lang.Exception>
Handlers of faults that occur when iterating over a stream.
- Author:
- Fabio Simeoni (University of Strathclyde), Fabio Simeoni (University of Strathclyde)
|
Method Summary |
boolean |
onFault(java.lang.Exception e,
int count)
Indicates whether the iterator should continue or stop the iteration on the occurrence of a fault. |
onFault
boolean onFault(java.lang.Exception e,
int count)
throws E extends java.lang.Exception
- Indicates whether the iterator should continue or stop the iteration on the occurrence of a fault.
- Parameters:
e - the fault.count - the number of faults encountered so far during iteration.
- Returns:
true if iteration should continue, false otherwise.
- Throws:
E - if the handling policy is to propagate faults.
E extends java.lang.Exception