|
2 | 2 |
|
3 | 3 | namespace AsyncAws\Lambda\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\Lambda\Enum\Runtime; |
@@ -33,10 +34,10 @@ public function getIterator(): \Traversable |
33 | 34 | { |
34 | 35 | $client = $this->awsClient; |
35 | 36 | if (!$client instanceof LambdaClient) { |
36 | | - throw new \InvalidArgumentException('missing client injected in paginated result'); |
| 37 | + throw new InvalidArgument('missing client injected in paginated result'); |
37 | 38 | } |
38 | 39 | if (!$this->input instanceof ListLayerVersionsRequest) { |
39 | | - throw new \InvalidArgumentException('missing last request injected in paginated result'); |
| 40 | + throw new InvalidArgument('missing last request injected in paginated result'); |
40 | 41 | } |
41 | 42 | $input = clone $this->input; |
42 | 43 | $page = $this; |
@@ -76,10 +77,10 @@ public function getLayerVersions(bool $currentPageOnly = false): iterable |
76 | 77 |
|
77 | 78 | $client = $this->awsClient; |
78 | 79 | if (!$client instanceof LambdaClient) { |
79 | | - throw new \InvalidArgumentException('missing client injected in paginated result'); |
| 80 | + throw new InvalidArgument('missing client injected in paginated result'); |
80 | 81 | } |
81 | 82 | if (!$this->input instanceof ListLayerVersionsRequest) { |
82 | | - throw new \InvalidArgumentException('missing last request injected in paginated result'); |
| 83 | + throw new InvalidArgument('missing last request injected in paginated result'); |
83 | 84 | } |
84 | 85 | $input = clone $this->input; |
85 | 86 | $page = $this; |
|
0 commit comments