Skip to content

Commit

Permalink
Throw network exception if retries fail due to network issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndiritu committed Nov 2, 2023
1 parent f8e7965 commit 6098a05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,7 @@ try {
$retries ++;
}
}
if ($retries >= $maxRetries && !$uploadSession) {
$cancelledUploadSession = $largeFileUpload->cancel();
}
throw $ex;
}

```
Expand Down

0 comments on commit 6098a05

Please sign in to comment.