public function __construct($message, $code, $severity, $filename, $line) { parent::__construct($message, $code); $this->severity = $severity; $this->file = $filename; $this->line = $line; }
public function __construct(array $exceptions) { $this->setExceptions($exceptions); $msg = "Exception List with Exceptions:\n"; foreach ($exceptions as $key => $exception) { $msg .= sprintf(" #%d %s\n", $key + 1, $exception->getMessage()); } parent::__construct($msg); }
public function __construct($message = "", $code = 0, \Exception $previous = NULL) { if (is_array($message)) { $this->keys = $message; $ccode = '$conf' . A::join($this->keys, "['%s']"); $message = sprintf("Cannot read variable: '%s' from config. Put %s to your config.php", implode('.', $this->keys), $ccode); $this->phpCode = $ccode . ' = NULL;'; } parent::__construct($message, $code, $previous); }