Class PollResult.Error

  • Enclosing class:
    PollResult<T>

    public static class PollResult.Error
    extends Object
    Type represents the error that poll-operation received from the service.
    • Constructor Detail

      • Error

        public Error​(String message,
                     int responseStatusCode,
                     HttpHeaders responseHeaders,
                     String responseBody)
        Creates Error.
        Parameters:
        message - the error message
        responseStatusCode - the http status code associated with the error
        responseHeaders - the http response headers associated with the error
        responseBody - the http response body associated with the error
    • Method Detail

      • getMessage

        public String getMessage()
        Returns:
        the error message
      • getResponseStatusCode

        public int getResponseStatusCode()
        Returns:
        the response status code associated with the error
      • getResponseBody

        public String getResponseBody()
        Returns:
        the response body associated with the error
      • getResponseHeaders

        public HttpHeaders getResponseHeaders()
        Returns:
        the response headers associated with the error