Interface JsonPipelineExceptionHandler

    • Method Detail

      • call

        rx.Observable<JsonPipelineOutput> call​(JsonPipelineOutput defaultFallbackContent,
                                               RuntimeException caughtException)
        The method that defines the exception handling behavior. You can either
        • return static fallback content (based on the given default fallback content) )
        • Setup another JsonPipeline to fetch fallback content, and return its output observable as obtained by JsonPipeline.getOutput()
        • Rethrow the exception
        Specified by:
        call in interface rx.functions.Func2<JsonPipelineOutput,​RuntimeException,​rx.Observable<JsonPipelineOutput>>
        Parameters:
        defaultFallbackContent - a default pipeline output object (which already has the appropriate status code set)
        caughtException - the exception being handled