/** * Initializes Drupal driver manager exception. * * @param string $message * The exception message. * @param DriverInterface $driver * The driver where the exception occurred. * @param int $code * Optional exception code. Defaults to 0. * @param \Exception $previous * Optional previous exception that was thrown. */ public function __construct($message, DriverInterface $driver = NULL, $code = 0, \Exception $previous = NULL) { $this->driver = $driver; parent::__construct($message, $code, $previous); }
/** * Initializes exception. * * @param string $template * What is unsupported? * @param DriverInterface $driver * Driver instance. * @param int $code * The exception code. * @param \Exception $previous * Previous exception. */ public function __construct($template, DriverInterface $driver, $code = 0, \Exception $previous = NULL) { $message = sprintf($template, get_class($driver)); parent::__construct($message, $driver, $code, $previous); }