File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 15
15
use Doctrine \DBAL \DBALException ;
16
16
use Doctrine \DBAL \Driver \Result ;
17
17
use Doctrine \DBAL \DriverManager ;
18
+ use Doctrine \DBAL \Exception ;
18
19
use Doctrine \DBAL \Schema \Schema ;
19
20
use Symfony \Component \Lock \Exception \InvalidArgumentException ;
20
21
use Symfony \Component \Lock \Exception \InvalidTtlException ;
@@ -126,7 +127,7 @@ public function save(Key $key)
126
127
127
128
try {
128
129
$ stmt ->execute ();
129
- } catch (DBALException $ e ) {
130
+ } catch (DBALException | Exception $ e ) {
130
131
// the lock is already acquired. It could be us. Let's try to put off.
131
132
$ this ->putOffExpiration ($ key , $ this ->initialTtl );
132
133
} catch (\PDOException $ e ) {
@@ -240,6 +241,7 @@ private function getConnection(): object
240
241
*
241
242
* @throws \PDOException When the table already exists
242
243
* @throws DBALException When the table already exists
244
+ * @throws Exception When the table already exists
243
245
* @throws \DomainException When an unsupported PDO driver is used
244
246
*/
245
247
public function createTable (): void
You can’t perform that action at this time.
0 commit comments