Package io.wcm.caravan.testing.pipeline
Class AssertStatusCodeExceptionHandler
- java.lang.Object
-
- io.wcm.caravan.testing.pipeline.AssertStatusCodeExceptionHandler
-
- All Implemented Interfaces:
io.wcm.caravan.pipeline.JsonPipelineExceptionHandler
,rx.functions.Func2<io.wcm.caravan.pipeline.JsonPipelineOutput,RuntimeException,rx.Observable<io.wcm.caravan.pipeline.JsonPipelineOutput>>
,rx.functions.Function
@ProviderType public final class AssertStatusCodeExceptionHandler extends Object implements io.wcm.caravan.pipeline.JsonPipelineExceptionHandler
Checks the HTTP status code of the error response.
-
-
Constructor Summary
Constructors Constructor Description AssertStatusCodeExceptionHandler(int statusCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description rx.Observable<io.wcm.caravan.pipeline.JsonPipelineOutput>
call(io.wcm.caravan.pipeline.JsonPipelineOutput defaultFallbackContent, RuntimeException caughtException)
-
-
-
Method Detail
-
call
public rx.Observable<io.wcm.caravan.pipeline.JsonPipelineOutput> call(io.wcm.caravan.pipeline.JsonPipelineOutput defaultFallbackContent, RuntimeException caughtException)
- Specified by:
call
in interfacerx.functions.Func2<io.wcm.caravan.pipeline.JsonPipelineOutput,RuntimeException,rx.Observable<io.wcm.caravan.pipeline.JsonPipelineOutput>>
- Specified by:
call
in interfaceio.wcm.caravan.pipeline.JsonPipelineExceptionHandler
-
-