Class PartitionKeyRangeGoneException

  • All Implemented Interfaces:
    Serializable

    public class PartitionKeyRangeGoneException
    extends CosmosClientException
    This exception is thrown when DocumentServiceRequest contains x-ms-documentdb-partitionkeyrangeid header and such range id doesn't exist.

    No retries should be made in this case, as either split or merge might have happened and query/readfeed must take appropriate actions.

    See Also:
    Serialized Form
    • Constructor Detail

      • PartitionKeyRangeGoneException

        public PartitionKeyRangeGoneException()
      • PartitionKeyRangeGoneException

        public PartitionKeyRangeGoneException​(CosmosError cosmosError,
                                              long lsn,
                                              String partitionKeyRangeId,
                                              Map<String,​String> responseHeaders)
      • PartitionKeyRangeGoneException

        public PartitionKeyRangeGoneException​(String message)
      • PartitionKeyRangeGoneException

        public PartitionKeyRangeGoneException​(String message,
                                              com.azure.data.cosmos.internal.http.HttpHeaders headers,
                                              String requestUriString)