Class CloudHttpException


public class CloudHttpException extends IOException
A failed request to a cloud REST service, with the HTTP status and the response body the service sent.
  • Constructor Details

    • CloudHttpException

      public CloudHttpException(int status, String responseBody)

      Creates the exception.

      Parameters
      • status: the HTTP status, or 0 for a network failure

      • responseBody: the response text, may be empty

  • Method Details

    • getStatus

      public int getStatus()

      The HTTP status, or 0 for a network failure.

      Returns

      the status code

    • getResponseBody

      public String getResponseBody()

      The response text the service sent with the error.

      Returns

      the body, never null