Package com.azure.data.cosmos
Class InternalServerErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.azure.data.cosmos.CosmosClientException
-
- com.azure.data.cosmos.InternalServerErrorException
-
- All Implemented Interfaces:
Serializable
public class InternalServerErrorException 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 InternalServerErrorException(CosmosError cosmosError, long lsn, String partitionKeyRangeId, Map<String,String> responseHeaders)
InternalServerErrorException(String message)
InternalServerErrorException(String message, com.azure.data.cosmos.internal.http.HttpHeaders headers, URI requestUri)
InternalServerErrorException(String message, Exception innerException, Map<String,String> 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
-
InternalServerErrorException
public InternalServerErrorException(CosmosError cosmosError, long lsn, String partitionKeyRangeId, Map<String,String> responseHeaders)
-
InternalServerErrorException
public InternalServerErrorException(String message)
-
InternalServerErrorException
public InternalServerErrorException(String message, com.azure.data.cosmos.internal.http.HttpHeaders headers, URI requestUri)
-
-