| 1 | <?php |
||
| 10 | abstract class Exception extends \Exception { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The driver where the exception occurred. |
||
| 14 | * |
||
| 15 | * @var \Drupal\Driver\DriverInterface |
||
| 16 | */ |
||
| 17 | private $driver; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Initializes Drupal driver manager exception. |
||
| 21 | * |
||
| 22 | * @param string $message |
||
| 23 | * The exception message. |
||
| 24 | * @param \Drupal\Driver\DriverInterface $driver |
||
| 25 | * The driver where the exception occurred. |
||
| 26 | * @param int $code |
||
| 27 | * Optional exception code. Defaults to 0. |
||
| 28 | * @param \Exception $previous |
||
| 29 | * Optional previous exception that was thrown. |
||
| 30 | */ |
||
| 31 | public function __construct($message, DriverInterface $driver = NULL, $code = 0, \Exception $previous = NULL) { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns exception driver. |
||
| 39 | * |
||
| 40 | * @return \Drupal\Driver\DriverInterface |
||
| 41 | * The driver where the exception occurred. |
||
| 42 | */ |
||
| 43 | public function getDriver() { |
||
| 46 | |||
| 47 | } |
||
| 48 |