Class CdpServiceException

All Implemented Interfaces:
Serializable

public class CdpServiceException extends CdpHTTPException
Class used to report well-formed errors from CDP services.
See Also:
  • Constructor Details

    • CdpServiceException

      public CdpServiceException(String requestId, int httpCode, Map<String,List<String>> responseHeaders, String statusCode, String statusMessage)
      Constructor.
      Parameters:
      requestId - the request ID
      httpCode - the HTTP code
      responseHeaders - the response headers
      statusCode - the status code
      statusMessage - the status message
  • Method Details

    • getStatusCode

      public String getStatusCode()
      Gets the API status code.
      Returns:
      the API status code
    • getStatusMessage

      public String getStatusMessage()
      Gets the API status message.
      Returns:
      the API status message
    • getResponseHeaders

      public Map<String,List<String>> getResponseHeaders()
      Gets the response headers, if any.
      Returns:
      the response headers
    • getRequestId

      public String getRequestId()
      Gets the requestId.
      Returns:
      the requestId
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable