public function __construct($message, $line = null, $column = null) { $this->parserLine = $line; $this->parserColumn = $column; if (!is_null($line)) { $message .= " on line {$line}"; if (!is_null($column)) { $message .= ", column {$column}"; } } parent::__construct($message); }
public function __construct($message = "", $code = 0, Exception $previous = null, $body = '') { parent::__construct($message, $code, $previous); $this->body = $body; }