Skip to content

Commit 99224de

Browse files
authored
Move logic outside exception (#933)
* Move logic outside exception * Explain why `defineResolveStatus` does not instanciate exception
1 parent dc17ecd commit 99224de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/DynamoDbClient.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
namespace AsyncAws\DynamoDb;
44

55
use AsyncAws\Core\AbstractApi;
6+
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
7+
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
68
use AsyncAws\Core\Configuration;
79
use AsyncAws\Core\RequestContext;
810
use AsyncAws\DynamoDb\Enum\BillingMode;
@@ -474,6 +476,11 @@ public function updateTimeToLive($input): UpdateTimeToLiveOutput
474476
return new UpdateTimeToLiveOutput($response);
475477
}
476478

479+
protected function getAwsErrorFactory(): AwsErrorFactoryInterface
480+
{
481+
return new JsonRpcAwsErrorFactory();
482+
}
483+
477484
protected function getEndpointMetadata(?string $region): array
478485
{
479486
if (null === $region) {

0 commit comments

Comments
 (0)