Skip to content

Commit 8be6f7c

Browse files
authored
Sort exceptions alphabetically (#1875)
1 parent 9f25660 commit 8be6f7c

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Changed
6+
7+
- Sort exception alphabetically.
8+
59
## 2.0.4
610

711
### Changed

src/TimestreamWriteClient.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ class TimestreamWriteClient extends AbstractApi
4747
* }|DescribeEndpointsRequest $input
4848
*
4949
* @throws InternalServerException
50-
* @throws ValidationException
5150
* @throws ThrottlingException
51+
* @throws ValidationException
5252
*/
5353
public function describeEndpoints($input = []): DescribeEndpointsResponse
5454
{
5555
$input = DescribeEndpointsRequest::create($input);
5656
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeEndpoints', 'region' => $input->getRegion(), 'exceptionMapping' => [
5757
'InternalServerException' => InternalServerException::class,
58-
'ValidationException' => ValidationException::class,
5958
'ThrottlingException' => ThrottlingException::class,
59+
'ValidationException' => ValidationException::class,
6060
]]));
6161

6262
return new DescribeEndpointsResponse($response);
@@ -110,25 +110,25 @@ public function describeEndpoints($input = []): DescribeEndpointsResponse
110110
* '@region'?: string|null,
111111
* }|WriteRecordsRequest $input
112112
*
113+
* @throws AccessDeniedException
113114
* @throws InternalServerException
115+
* @throws InvalidEndpointException
116+
* @throws RejectedRecordsException
117+
* @throws ResourceNotFoundException
114118
* @throws ThrottlingException
115119
* @throws ValidationException
116-
* @throws ResourceNotFoundException
117-
* @throws AccessDeniedException
118-
* @throws RejectedRecordsException
119-
* @throws InvalidEndpointException
120120
*/
121121
public function writeRecords($input): WriteRecordsResponse
122122
{
123123
$input = WriteRecordsRequest::create($input);
124124
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'WriteRecords', 'region' => $input->getRegion(), 'exceptionMapping' => [
125+
'AccessDeniedException' => AccessDeniedException::class,
125126
'InternalServerException' => InternalServerException::class,
127+
'InvalidEndpointException' => InvalidEndpointException::class,
128+
'RejectedRecordsException' => RejectedRecordsException::class,
129+
'ResourceNotFoundException' => ResourceNotFoundException::class,
126130
'ThrottlingException' => ThrottlingException::class,
127131
'ValidationException' => ValidationException::class,
128-
'ResourceNotFoundException' => ResourceNotFoundException::class,
129-
'AccessDeniedException' => AccessDeniedException::class,
130-
'RejectedRecordsException' => RejectedRecordsException::class,
131-
'InvalidEndpointException' => InvalidEndpointException::class,
132132
], 'requiresEndpointDiscovery' => true, 'usesEndpointDiscovery' => true]));
133133

134134
return new WriteRecordsResponse($response);

0 commit comments

Comments
 (0)