Package org.httprpc

Interface WebServiceProxy.ErrorHandler

  • Enclosing class:
    WebServiceProxy

    public static interface WebServiceProxy.ErrorHandler
    Interface representing an error handler.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handleResponse​(java.io.InputStream errorStream, java.lang.String contentType, int statusCode)
      Handles an error response.
    • Method Detail

      • handleResponse

        void handleResponse​(java.io.InputStream errorStream,
                            java.lang.String contentType,
                            int statusCode)
                     throws java.io.IOException
        Handles an error response.
        Parameters:
        errorStream - The error stream.
        contentType - The content type, or null if the content type is not known.
        statusCode - The status code.
        Throws:
        java.io.IOException - Representing the error that occurred, or if an exception occurs while handling the error.