Class ApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.datadog.api.client.ApiException
All Implemented Interfaces:
Serializable

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ApiException extends Exception
API Exception
See Also:
  • Constructor Details

  • Method Details

    • 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