|
2 | 2 |
|
3 | 3 | namespace AsyncAws\DynamoDb\Result; |
4 | 4 |
|
| 5 | +use AsyncAws\Core\Exception\InvalidArgument; |
5 | 6 | use AsyncAws\Core\Response; |
6 | 7 | use AsyncAws\Core\Result; |
7 | 8 | use AsyncAws\DynamoDb\DynamoDbClient; |
@@ -50,10 +51,10 @@ public function getConsumedCapacity(bool $currentPageOnly = false): iterable |
50 | 51 |
|
51 | 52 | $client = $this->awsClient; |
52 | 53 | if (!$client instanceof DynamoDbClient) { |
53 | | - throw new \InvalidArgumentException('missing client injected in paginated result'); |
| 54 | + throw new InvalidArgument('missing client injected in paginated result'); |
54 | 55 | } |
55 | 56 | if (!$this->input instanceof BatchGetItemInput) { |
56 | | - throw new \InvalidArgumentException('missing last request injected in paginated result'); |
| 57 | + throw new InvalidArgument('missing last request injected in paginated result'); |
57 | 58 | } |
58 | 59 | $input = clone $this->input; |
59 | 60 | $page = $this; |
@@ -86,10 +87,10 @@ public function getIterator(): \Traversable |
86 | 87 | { |
87 | 88 | $client = $this->awsClient; |
88 | 89 | if (!$client instanceof DynamoDbClient) { |
89 | | - throw new \InvalidArgumentException('missing client injected in paginated result'); |
| 90 | + throw new InvalidArgument('missing client injected in paginated result'); |
90 | 91 | } |
91 | 92 | if (!$this->input instanceof BatchGetItemInput) { |
92 | | - throw new \InvalidArgumentException('missing last request injected in paginated result'); |
| 93 | + throw new InvalidArgument('missing last request injected in paginated result'); |
93 | 94 | } |
94 | 95 | $input = clone $this->input; |
95 | 96 | $page = $this; |
|
0 commit comments