Skip to content

Commit e3be53b

Browse files
authored
Sort exceptions alphabetically (#1875)
1 parent 8dd9bbd commit e3be53b

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/SsoClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ class SsoClient extends AbstractApi
3131
* }|GetRoleCredentialsRequest $input
3232
*
3333
* @throws InvalidRequestException
34-
* @throws UnauthorizedException
35-
* @throws TooManyRequestsException
3634
* @throws ResourceNotFoundException
35+
* @throws TooManyRequestsException
36+
* @throws UnauthorizedException
3737
*/
3838
public function getRoleCredentials($input): GetRoleCredentialsResponse
3939
{
4040
$input = GetRoleCredentialsRequest::create($input);
4141
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetRoleCredentials', 'region' => $input->getRegion(), 'exceptionMapping' => [
4242
'InvalidRequestException' => InvalidRequestException::class,
43-
'UnauthorizedException' => UnauthorizedException::class,
44-
'TooManyRequestsException' => TooManyRequestsException::class,
4543
'ResourceNotFoundException' => ResourceNotFoundException::class,
44+
'TooManyRequestsException' => TooManyRequestsException::class,
45+
'UnauthorizedException' => UnauthorizedException::class,
4646
]]));
4747

4848
return new GetRoleCredentialsResponse($response);

0 commit comments

Comments
 (0)