Class PropagateOnStatus
- java.lang.Object
-
- org.openstack4j.core.transport.propagation.PropagateOnStatus
-
- All Implemented Interfaces:
PropagateResponse
public class PropagateOnStatus extends Object implements PropagateResponse
Propagates an exception based on the specified Status code- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropagateOnStatuson(int statusCode)voidpropagate(HttpResponse response)Called to allow for optional exception propagation depending on the HttpResponse state
-
-
-
Method Detail
-
on
public static PropagateOnStatus on(int statusCode)
-
propagate
public void propagate(HttpResponse response)
Description copied from interface:PropagateResponseCalled to allow for optional exception propagation depending on the HttpResponse state- Specified by:
propagatein interfacePropagateResponse- Parameters:
response- the http response
-
-