PluginProbe
SQLite Database Integration / 2.2.18
SQLite Database Integration v2.2.18
3.0.2 3.0.1 trunk 2.1.13 2.1.14 2.1.15 2.1.16 2.2.0 2.2.1 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.17 2.2.18 2.2.19 2.2.2 2.2.20 2.2.21 2.2.22 2.2.23 2.2.3 All 32 releases
sqlite-database-integration / wp-includes / sqlite-ast / class-wp-sqlite-driver-exception.php

class-wp-sqlite-driver-exception.php in SQLite Database Integration 2.2.18, at wp-includes/sqlite-ast/class-wp-sqlite-driver-exception.php

34 lines 905 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class WP_SQLite_Driver_Exception extends PDOException {
4 /**
5 * The SQLite driver that originated the exception.
6 *
7 * @var WP_PDO_MySQL_On_SQLite
8 */
9 private $driver;
10
11 /**
12 * Constructor.
13 *
14 * @param WP_PDO_MySQL_On_SQLite $driver The SQLite driver that originated the exception.
15 * @param string $message The exception message.
16 * @param int|string $code The exception code. In PDO, it can be a string with value of SQLSTATE.
17 * @param Throwable|null $previous The previous throwable used for the exception chaining.
18 */
19 public function __construct(
20 WP_PDO_MySQL_On_SQLite $driver,
21 string $message,
22 $code = 0,
23 ?Throwable $previous = null
24 ) {
25 parent::__construct( $message, 0, $previous );
26 $this->code = $code;
27 $this->driver = $driver;
28 }
29
30 public function getDriver(): WP_PDO_MySQL_On_SQLite {
31 return $this->driver;
32 }
33 }
34