Package com.azure.data.cosmos
Class PartitionKeyRangeGoneException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.azure.data.cosmos.CosmosClientException
-
- com.azure.data.cosmos.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 Summary
Constructors Constructor Description PartitionKeyRangeGoneException()
PartitionKeyRangeGoneException(CosmosError cosmosError, long lsn, String partitionKeyRangeId, Map<String,String> responseHeaders)
PartitionKeyRangeGoneException(String message)
PartitionKeyRangeGoneException(String message, com.azure.data.cosmos.internal.http.HttpHeaders headers, String requestUriString)
-
Method Summary
-
Methods inherited from class com.azure.data.cosmos.CosmosClientException
cosmosResponseDiagnostics, error, getMessage, message, responseHeaders, retryAfterInMilliseconds, statusCode, subStatusCode, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
PartitionKeyRangeGoneException
public PartitionKeyRangeGoneException()
-
PartitionKeyRangeGoneException
public PartitionKeyRangeGoneException(CosmosError cosmosError, long lsn, String partitionKeyRangeId, Map<String,String> responseHeaders)
-
PartitionKeyRangeGoneException
public PartitionKeyRangeGoneException(String message)
-
-