mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 08:17:18 +00:00
cb3382f6d2
Some checks failed
PHP Coding Standard / phpcs (7.4) (push) Has been cancelled
Tests / linux-tests (mysql, 8.0) (push) Has been cancelled
Tests / linux-tests (mysql, 8.1) (push) Has been cancelled
Tests / linux-tests (pgsql, 8.0) (push) Has been cancelled
Tests / linux-tests (sqlite, 8.0) (push) Has been cancelled
18 lines
398 B
PHP
18 lines
398 B
PHP
<?php
|
|
|
|
class PDOExceptionWithQueryString extends PDOException {
|
|
|
|
public string $queryString = "";
|
|
|
|
/**
|
|
* Wrapper for PDOException to avoid creating dynamic property.
|
|
*
|
|
* @param PDOException $e Source exception.
|
|
*/
|
|
public function __construct(PDOException $e) {
|
|
parent::__construct($e->getMessage(), 0, $e->getPrevious());
|
|
|
|
$this->errorInfo = $e->errorInfo;
|
|
$this->code = $e->code;
|
|
}
|
|
}
|