org.gcube.data.streams.handlers
Class RethrowHandler

java.lang.Object
  extended by org.gcube.data.streams.handlers.RethrowHandler
All Implemented Interfaces:
FaultHandler

public class RethrowHandler
extends Object
implements FaultHandler

A FaultHandler that rethrows all failures (i.e. does not handle any).

Author:
Fabio Simeoni

Constructor Summary
RethrowHandler()
           
 
Method Summary
 FaultResponse handle(RuntimeException failure)
          Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RethrowHandler

public RethrowHandler()
Method Detail

handle

public FaultResponse handle(RuntimeException failure)
                     throws RuntimeException
Description copied from interface: FaultHandler
Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.

Specified by:
handle in interface FaultHandler
Parameters:
failure - the failure
Returns:
the FaultResponse
Throws:
StreamContingencyException - if no element can be yielded, because the input element violates pre-conditions
RuntimeException - if no element can be yielded from the input element, because of an unrecoverable condition


Copyright © 2012. All Rights Reserved.