mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
17 lines
362 B
PHP
17 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;
|
|
}
|
|
}
|