API
9 months ago
Exception
2 years ago
Middleware
2 years ago
AbstractException.php
2 years ago
AbstractMySQLDriver.php
9 months ago
Connection.php
2 years ago
Exception.php
2 years ago
FetchUtils.php
2 years ago
Middleware.php
2 years ago
Result.php
2 years ago
ServerInfoAwareConnection.php
2 years ago
Statement.php
2 years ago
index.php
2 years ago
AbstractException.php
20 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\DBAL\Driver; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use Exception as BaseException; |
| 6 | use Throwable; |
| 7 | abstract class AbstractException extends BaseException implements Exception |
| 8 | { |
| 9 | private ?string $sqlState = null; |
| 10 | public function __construct($message, $sqlState = null, $code = 0, ?Throwable $previous = null) |
| 11 | { |
| 12 | parent::__construct($message, $code, $previous); |
| 13 | $this->sqlState = $sqlState; |
| 14 | } |
| 15 | public function getSQLState() |
| 16 | { |
| 17 | return $this->sqlState; |
| 18 | } |
| 19 | } |
| 20 |