Skip to content

Commit f5a582e

Browse files
authored
Sort exceptions alphabetically (#1875)
1 parent 94168d6 commit f5a582e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
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
## 1.4.0
610

711
### Added

src/FirehoseClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@ class FirehoseClient extends AbstractApi
7474
* '@region'?: string|null,
7575
* }|PutRecordInput $input
7676
*
77-
* @throws ResourceNotFoundException
7877
* @throws InvalidArgumentException
7978
* @throws InvalidKMSResourceException
8079
* @throws InvalidSourceException
80+
* @throws ResourceNotFoundException
8181
* @throws ServiceUnavailableException
8282
*/
8383
public function putRecord($input): PutRecordOutput
8484
{
8585
$input = PutRecordInput::create($input);
8686
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutRecord', 'region' => $input->getRegion(), 'exceptionMapping' => [
87-
'ResourceNotFoundException' => ResourceNotFoundException::class,
8887
'InvalidArgumentException' => InvalidArgumentException::class,
8988
'InvalidKMSResourceException' => InvalidKMSResourceException::class,
9089
'InvalidSourceException' => InvalidSourceException::class,
90+
'ResourceNotFoundException' => ResourceNotFoundException::class,
9191
'ServiceUnavailableException' => ServiceUnavailableException::class,
9292
]]));
9393

@@ -165,20 +165,20 @@ public function putRecord($input): PutRecordOutput
165165
* '@region'?: string|null,
166166
* }|PutRecordBatchInput $input
167167
*
168-
* @throws ResourceNotFoundException
169168
* @throws InvalidArgumentException
170169
* @throws InvalidKMSResourceException
171170
* @throws InvalidSourceException
171+
* @throws ResourceNotFoundException
172172
* @throws ServiceUnavailableException
173173
*/
174174
public function putRecordBatch($input): PutRecordBatchOutput
175175
{
176176
$input = PutRecordBatchInput::create($input);
177177
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutRecordBatch', 'region' => $input->getRegion(), 'exceptionMapping' => [
178-
'ResourceNotFoundException' => ResourceNotFoundException::class,
179178
'InvalidArgumentException' => InvalidArgumentException::class,
180179
'InvalidKMSResourceException' => InvalidKMSResourceException::class,
181180
'InvalidSourceException' => InvalidSourceException::class,
181+
'ResourceNotFoundException' => ResourceNotFoundException::class,
182182
'ServiceUnavailableException' => ServiceUnavailableException::class,
183183
]]));
184184

0 commit comments

Comments
 (0)