Package org.jclouds.fallbacks
Interface PropagateIfRetryAfter
-
- All Known Implementing Classes:
HeaderToRetryAfterException
public interface PropagateIfRetryAfter extends Fallback<Object>
propagates asRetryAfterException
if a Throwable contains information such as a retry offset.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
createOrPropagate(Throwable t)
if input is not of typeHttpResponseException
, this method propagates.
-
-
-
Method Detail
-
createOrPropagate
Object createOrPropagate(Throwable t) throws Exception
if input is not of typeHttpResponseException
, this method propagates. Otherwise,null
, if didn't coerce toRetryAfterException
- Specified by:
createOrPropagate
in interfaceFallback<Object>
- Parameters:
t
- the exception that made the call fail.- Throws:
Exception
-
-