@@ -1524,15 +1524,15 @@ public function getBucketEncryption($input): GetBucketEncryptionOutput
1524
1524
* '@region'?: string|null,
1525
1525
* }|GetObjectRequest $input
1526
1526
*
1527
- * @throws NoSuchKeyException
1528
1527
* @throws InvalidObjectStateException
1528
+ * @throws NoSuchKeyException
1529
1529
*/
1530
1530
public function getObject ($ input ): GetObjectOutput
1531
1531
{
1532
1532
$ input = GetObjectRequest::create ($ input );
1533
1533
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetObject ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
1534
- 'NoSuchKey ' => NoSuchKeyException::class,
1535
1534
'InvalidObjectState ' => InvalidObjectStateException::class,
1535
+ 'NoSuchKey ' => NoSuchKeyException::class,
1536
1536
]]));
1537
1537
1538
1538
return new GetObjectOutput ($ response );
@@ -2599,19 +2599,19 @@ public function putBucketTagging($input): Result
2599
2599
* '@region'?: string|null,
2600
2600
* }|PutObjectRequest $input
2601
2601
*
2602
+ * @throws EncryptionTypeMismatchException
2602
2603
* @throws InvalidRequestException
2603
2604
* @throws InvalidWriteOffsetException
2604
2605
* @throws TooManyPartsException
2605
- * @throws EncryptionTypeMismatchException
2606
2606
*/
2607
2607
public function putObject ($ input ): PutObjectOutput
2608
2608
{
2609
2609
$ input = PutObjectRequest::create ($ input );
2610
2610
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'PutObject ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
2611
+ 'EncryptionTypeMismatch ' => EncryptionTypeMismatchException::class,
2611
2612
'InvalidRequest ' => InvalidRequestException::class,
2612
2613
'InvalidWriteOffset ' => InvalidWriteOffsetException::class,
2613
2614
'TooManyParts ' => TooManyPartsException::class,
2614
- 'EncryptionTypeMismatch ' => EncryptionTypeMismatchException::class,
2615
2615
]]));
2616
2616
2617
2617
return new PutObjectOutput ($ response );
0 commit comments