diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/SQLite3/Exception.php')
| -rw-r--r-- | vendor/doctrine/dbal/src/Driver/SQLite3/Exception.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/SQLite3/Exception.php b/vendor/doctrine/dbal/src/Driver/SQLite3/Exception.php new file mode 100644 index 0000000..d423004 --- /dev/null +++ b/vendor/doctrine/dbal/src/Driver/SQLite3/Exception.php | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\SQLite3; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * @internal | ||
| 11 | * | ||
| 12 | * @psalm-immutable | ||
| 13 | */ | ||
| 14 | final class Exception extends AbstractException | ||
| 15 | { | ||
| 16 | public static function new(\Exception $exception): self | ||
| 17 | { | ||
| 18 | return new self($exception->getMessage(), null, (int) $exception->getCode(), $exception); | ||
| 19 | } | ||
| 20 | } | ||
