Skip to content

Commit 511327f

Browse files
authored
Sort exceptions alphabetically (#1875)
1 parent 5f724ed commit 511327f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
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.3.0
610

711
### Added

src/ComprehendClient.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ class ComprehendClient extends AbstractApi
2929
* '@region'?: string|null,
3030
* }|DetectDominantLanguageRequest $input
3131
*
32+
* @throws InternalServerException
3233
* @throws InvalidRequestException
3334
* @throws TextSizeLimitExceededException
34-
* @throws InternalServerException
3535
*/
3636
public function detectDominantLanguage($input): DetectDominantLanguageResponse
3737
{
3838
$input = DetectDominantLanguageRequest::create($input);
3939
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DetectDominantLanguage', 'region' => $input->getRegion(), 'exceptionMapping' => [
40+
'InternalServerException' => InternalServerException::class,
4041
'InvalidRequestException' => InvalidRequestException::class,
4142
'TextSizeLimitExceededException' => TextSizeLimitExceededException::class,
42-
'InternalServerException' => InternalServerException::class,
4343
]]));
4444

4545
return new DetectDominantLanguageResponse($response);

0 commit comments

Comments
 (0)