Skip to content

Commit 07665d2

Browse files
authored
Move logic outside exception (#933)
* Move logic outside exception * Explain why `defineResolveStatus` does not instanciate exception
1 parent bae625b commit 07665d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/LambdaClient.php

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

55
use AsyncAws\Core\AbstractApi;
6+
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
7+
use AsyncAws\Core\AwsError\JsonRestAwsErrorFactory;
68
use AsyncAws\Core\Configuration;
79
use AsyncAws\Core\RequestContext;
810
use AsyncAws\Lambda\Enum\InvocationType;
@@ -123,6 +125,11 @@ public function publishLayerVersion($input): PublishLayerVersionResponse
123125
return new PublishLayerVersionResponse($response);
124126
}
125127

128+
protected function getAwsErrorFactory(): AwsErrorFactoryInterface
129+
{
130+
return new JsonRestAwsErrorFactory();
131+
}
132+
126133
protected function getEndpointMetadata(?string $region): array
127134
{
128135
if (null === $region) {

0 commit comments

Comments
 (0)