mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
18 lines
362 B
PHP
18 lines
362 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->code = $e->code;
|
||
|
}
|
||
|
}
|