Package org.jclouds.fallbacks
Interface PropagateIfRetryAfter
-
- All Known Implementing Classes:
HeaderToRetryAfterException
public interface PropagateIfRetryAfter extends Fallback<Object>
propagates asRetryAfterExceptionif a Throwable contains information such as a retry offset.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectcreateOrPropagate(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:
createOrPropagatein interfaceFallback<Object>- Parameters:
t- the exception that made the call fail.- Throws:
Exception
-
-