Skip to content

Commit fe1f3bc

Browse files
authored
Make sure we are always throwing an exception from Core (#841)
* Make sure we are always throwing an exception from Core * Make sure we generate classes to throw correct exception * ./generate --all * Shorten name * Do cover integrations * Added changelog
1 parent 227ebde commit fe1f3bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SessionHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace AsyncAws\DynamoDbSession;
44

5+
use AsyncAws\Core\Exception\RuntimeException;
56
use AsyncAws\DynamoDb\DynamoDbClient;
67
use AsyncAws\DynamoDb\Enum\BillingMode;
78
use AsyncAws\DynamoDb\Enum\KeyType;
@@ -82,7 +83,7 @@ public function setUp(): void
8283
$response = $this->client->tableExists(['TableName' => $this->options['table_name']]);
8384
$response->wait(100, 3);
8485
if (!$response->isSuccess()) {
85-
throw new \RuntimeException(sprintf('Could not create table %s', $this->options['table_name']));
86+
throw new RuntimeException(sprintf('Could not create table %s', $this->options['table_name']));
8687
}
8788

8889
$this->client->updateTimeToLive([

0 commit comments

Comments
 (0)