Exception.php 313 B

1234567891011121314151617181920
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\DBAL\Driver\PDO;
  4. use Doctrine\DBAL\Driver\PDOException;
  5. /**
  6. * @internal
  7. *
  8. * @psalm-immutable
  9. */
  10. final class Exception extends PDOException
  11. {
  12. public static function new(\PDOException $exception): self
  13. {
  14. return new self($exception);
  15. }
  16. }