Class ApiException

    • Constructor Detail

      • ApiException

        public ApiException()
        ApiException constructor.
      • ApiException

        public ApiException​(Throwable throwable)
        ApiException constructor.
        Parameters:
        throwable - The Throwable type
      • ApiException

        public ApiException​(String message)
        ApiException constructor.
        Parameters:
        message - The string message
      • ApiException

        public ApiException​(String message,
                            Throwable throwable,
                            int code,
                            Map<String,​List<String>> responseHeaders,
                            String responseBody)
        ApiException constructor.
        Parameters:
        message - The string message
        throwable - The Throwable type
        code - The error code
        responseHeaders - The response headers
        responseBody - The body of response
      • ApiException

        public ApiException​(String message,
                            int code,
                            Map<String,​List<String>> responseHeaders,
                            String responseBody)
        ApiException constructor.
        Parameters:
        message - The string message
        code - The error code
        responseHeaders - The response headers
        responseBody - The body of response
      • ApiException

        public ApiException​(String message,
                            Throwable throwable,
                            int code,
                            Map<String,​List<String>> responseHeaders)
        ApiException constructor.
        Parameters:
        message - The string message
        throwable - The Throwable type
        code - The error code
        responseHeaders - The response headers
      • ApiException

        public ApiException​(int code,
                            Map<String,​List<String>> responseHeaders,
                            String responseBody)
        ApiException constructor.
        Parameters:
        code - The error code
        responseHeaders - The response headers
        responseBody - The body of response
      • ApiException

        public ApiException​(int code,
                            String message)
        ApiException constructor.
        Parameters:
        code - The error code
        message - The string message
      • ApiException

        public ApiException​(int code,
                            String message,
                            Map<String,​List<String>> responseHeaders,
                            String responseBody)
        ApiException constructor.
        Parameters:
        code - The error code
        message - The string message
        responseHeaders - The response headers
        responseBody - The body of response
    • Method Detail

      • getCode

        public int getCode()
        Get the HTTP status code.
        Returns:
        HTTP status code
      • getResponseHeaders

        public Map<String,​List<String>> getResponseHeaders()
        Get the HTTP response headers.
        Returns:
        A map of list of string
      • getResponseBody

        public String getResponseBody()
        Get the HTTP response body.
        Returns:
        Response body in the form of string