Skip to content

Commit 566d388

Browse files
authored
Sort exceptions alphabetically (#1875)
1 parent 795eab8 commit 566d388

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
- AWS api-change: This release adds support for environment type WINDOWS_SERVER_2022_CONTAINER in ProjectEnvironment
88
- AWS api-change: Added `us-isob-east-1` region.
99

10+
### Changed
11+
12+
- Sort exception alphabetically.
13+
1014
## 2.9.0
1115

1216
### Added

Diff for: src/CodeBuildClient.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,17 @@ public function batchGetBuilds($input): BatchGetBuildsOutput
105105
* '@region'?: string|null,
106106
* }|StartBuildInput $input
107107
*
108+
* @throws AccountLimitExceededException
108109
* @throws InvalidInputException
109110
* @throws ResourceNotFoundException
110-
* @throws AccountLimitExceededException
111111
*/
112112
public function startBuild($input): StartBuildOutput
113113
{
114114
$input = StartBuildInput::create($input);
115115
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'StartBuild', 'region' => $input->getRegion(), 'exceptionMapping' => [
116+
'AccountLimitExceededException' => AccountLimitExceededException::class,
116117
'InvalidInputException' => InvalidInputException::class,
117118
'ResourceNotFoundException' => ResourceNotFoundException::class,
118-
'AccountLimitExceededException' => AccountLimitExceededException::class,
119119
]]));
120120

121121
return new StartBuildOutput($response);

0 commit comments

Comments
 (0)