OCI8Exception.php 387 B

123456789101112131415161718
  1. <?php
  2. namespace Doctrine\DBAL\Driver\OCI8;
  3. use Doctrine\DBAL\Driver\AbstractDriverException;
  4. class OCI8Exception extends AbstractDriverException
  5. {
  6. /**
  7. * @param mixed[] $error
  8. *
  9. * @return \Doctrine\DBAL\Driver\OCI8\OCI8Exception
  10. */
  11. public static function fromErrorInfo($error)
  12. {
  13. return new self($error['message'], null, $error['code']);
  14. }
  15. }