SQLSrvException.php 485 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Doctrine\DBAL\Driver\SQLSrv;
  3. use Doctrine\DBAL\Driver\AbstractDriverException;
  4. use Doctrine\DBAL\Driver\SQLSrv\Exception\Error;
  5. /**
  6. * @deprecated Use {@link Exception} instead
  7. *
  8. * @psalm-immutable
  9. */
  10. class SQLSrvException extends AbstractDriverException
  11. {
  12. /**
  13. * Helper method to turn sql server errors into exception.
  14. *
  15. * @return SQLSrvException
  16. */
  17. public static function fromSqlSrvErrors()
  18. {
  19. return Error::new();
  20. }
  21. }