Class ApiException

    • Constructor Detail

      • ApiException

        public ApiException​(String reason)
        Initialization constructor.
        Parameters:
        reason - The reason for throwing exception
      • ApiException

        public ApiException​(String reason,
                            HttpContext context)
        Initialization constructor.
        Parameters:
        reason - The reason for throwing exception
        context - The http context of the API exception
    • Method Detail

      • getResponseCode

        public int getResponseCode()
        The HTTP response code from the API request.
        Returns:
        Returns the response code for ApiException
      • getHttpContext

        public HttpContext getHttpContext()
        The HTTP response body from the API request.
        Returns:
        Returns the object of HttpContext for ApiException