[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Jurnal PSCP
/
lib
/
pkp
/
lib
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
[
Home
]
File: PDOException.php
<?php namespace Doctrine\DBAL\Driver; use Doctrine\DBAL\Driver\PDO\Exception; /** * @deprecated Use {@link Exception} instead * * @psalm-immutable */ class PDOException extends \PDOException implements DriverException { /** * The driver specific error code. * * @var int|string|null */ private $errorCode; /** * The SQLSTATE of the driver. * * @var string|null */ private $sqlState; /** * @param \PDOException $exception The PDO exception to wrap. */ public function __construct(\PDOException $exception) { parent::__construct($exception->getMessage(), 0, $exception); $this->code = $exception->getCode(); $this->errorInfo = $exception->errorInfo; $this->errorCode = $exception->errorInfo[1] ?? $exception->getCode(); $this->sqlState = $exception->errorInfo[0] ?? $exception->getCode(); } /** * {@inheritdoc} */ public function getErrorCode() { return $this->errorCode; } /** * {@inheritdoc} */ public function getSQLState() { return $this->sqlState; } }