Interface PostInvocationInterceptor.ExceptionContext

  • Enclosing interface:
    PostInvocationInterceptor

    public static interface PostInvocationInterceptor.ExceptionContext
    The context providing information when the Throwable (typically, the RuntimeException) is caught.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<jakarta.ws.rs.client.ClientResponseContext> getResponseContext()
      If the ClientResponseContext has been available at the time of the Throwable occurrence, such as when the PostInvocationInterceptor is processed, it will be available.
      Deque<Throwable> getThrowables()
      Get the mutable Deque of unhandled Throwables occurred during the request (including previous PostInvocationInterceptor processing).
      void resolve​(jakarta.ws.rs.core.Response response)
      Resolve the Throwables with a provided Response.
    • Method Detail

      • getResponseContext

        Optional<jakarta.ws.rs.client.ClientResponseContext> getResponseContext()
        If the ClientResponseContext has been available at the time of the Throwable occurrence, such as when the PostInvocationInterceptor is processed, it will be available.
        Returns:
        ClientResponseContext if available.
      • getThrowables

        Deque<Throwable> getThrowables()
        Get the mutable Deque of unhandled Throwables occurred during the request (including previous PostInvocationInterceptor processing).
        Returns:
        Unhandled Throwables occurred during the request.
      • resolve

        void resolve​(jakarta.ws.rs.core.Response response)
        Resolve the Throwables with a provided Response. The Throwables in the ExceptionContext will be cleared.
        Parameters:
        response - the provided Response to be passed to a next PostInvocationInterceptor or the Client.