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:
        the HTTP status code
      • getHttpContext

        public HttpContext getHttpContext()
        The HTTP response body from the API request
        Returns:
        the HTTP context containing HTTO response