Class CosmosClientException

    • Method Detail

      • message

        public String message()
        Gets the activity ID associated with the request.
        Returns:
        the activity ID.
      • statusCode

        public int statusCode()
        Gets the http status code.
        Returns:
        the status code.
      • subStatusCode

        public int subStatusCode()
        Gets the sub status code.
        Returns:
        the status code.
      • error

        public CosmosError error()
        Gets the error code associated with the exception.
        Returns:
        the error.
      • retryAfterInMilliseconds

        public long retryAfterInMilliseconds()
        Gets the recommended time interval after which the client can retry failed requests
        Returns:
        the recommended time interval after which the client can retry failed requests.
      • responseHeaders

        public Map<String,​String> responseHeaders()
        Gets the response headers as key-value pairs
        Returns:
        the response headers
      • cosmosResponseDiagnostics

        public CosmosResponseDiagnostics cosmosResponseDiagnostics()
        Gets the Cosmos Response Diagnostic Statistics associated with this exception.
        Returns:
        Cosmos Response Diagnostic Statistics associated with this exception.