errorException = new \ErrorException($message, $code, $severity, $filename, $line, $previous); parent::__construct($message, $code, $previous); //$this->setObject($this->errorException); if($filename) $this->file = $filename; if($line) $this->line = $line; $this->severity = $severity; } /** @return int */ final public function getSeverity() { return $this->severity; } }