IFaultPolicy
Date: 2013-06-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD