Class 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 Detail

      • AssertStatusCodeExceptionHandler

        public AssertStatusCodeExceptionHandler​(int statusCode)
        Parameters:
        statusCode - Asserted HTTP status code
    • Method Detail

      • call

        public rx.Observable<io.wcm.caravan.pipeline.JsonPipelineOutput> call​(io.wcm.caravan.pipeline.JsonPipelineOutput defaultFallbackContent,
                                                                              RuntimeException caughtException)
        Specified by:
        call in interface rx.functions.Func2<io.wcm.caravan.pipeline.JsonPipelineOutput,​RuntimeException,​rx.Observable<io.wcm.caravan.pipeline.JsonPipelineOutput>>
        Specified by:
        call in interface io.wcm.caravan.pipeline.JsonPipelineExceptionHandler