aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/Exceptions/DbalException.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/DB/Exceptions/DbalException.php')
-rw-r--r--lib/private/DB/Exceptions/DbalException.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/DB/Exceptions/DbalException.php b/lib/private/DB/Exceptions/DbalException.php
index f9610c5bf25..2b860a50ff3 100644
--- a/lib/private/DB/Exceptions/DbalException.php
+++ b/lib/private/DB/Exceptions/DbalException.php
@@ -37,6 +37,7 @@ use Doctrine\DBAL\Exception\InvalidArgumentException;
use Doctrine\DBAL\Exception\InvalidFieldNameException;
use Doctrine\DBAL\Exception\NonUniqueFieldNameException;
use Doctrine\DBAL\Exception\NotNullConstraintViolationException;
+use Doctrine\DBAL\Exception\RetryableException;
use Doctrine\DBAL\Exception\ServerException;
use Doctrine\DBAL\Exception\SyntaxErrorException;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
@@ -74,6 +75,10 @@ class DbalException extends Exception {
);
}
+ public function isRetryable(): bool {
+ return $this->original instanceof RetryableException;
+ }
+
public function getReason(): ?int {
/**
* Constraint errors