Skip to content

Commit

Permalink
using cosmosexception
Browse files Browse the repository at this point in the history
  • Loading branch information
ealsur committed Dec 16, 2020
1 parent 337d0dc commit 0b462bd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ internal sealed class BulkPartitionKeyRangeGoneRetryPolicy : IDocumentClientRetr
Exception exception,
CancellationToken cancellationToken)
{
if (exception is DocumentClientException clientException)
if (exception is CosmosException clientException)
{
ShouldRetryResult shouldRetryResult = await this.ShouldRetryInternalAsync(
clientException?.StatusCode,
clientException?.GetSubStatus(),
clientException.StatusCode,
(SubStatusCodes)clientException.SubStatusCode,
cancellationToken);

if (shouldRetryResult != null)
Expand Down

0 comments on commit 0b462bd

Please sign in to comment.