Skip to content
Snippets Groups Projects
Commit 551dbd17 authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractException: removed __construct(), cause with it, __LINE__ and __FILE__ have been loosed.

ErrorHandler: throw of CodeException adjusted to removed __LINE__, __FILE__.
parent f2f730ec
No related branches found
No related tags found
No related merge requests found
......@@ -19,28 +19,14 @@ class AbstractException extends \Exception {
protected $file = '';
protected $line = '';
/**
* Constructor
*
* @param string $message
* @param int $code
* @param \Exception $previous
*/
public function __construct($message = '', $code = 0, \Exception $previous = null, $file = '', $line = '') {
$this->file = $file;
$this->line = $line;
// $this->store = \qfq\Store::getInstance('');
parent::__construct($message, $code, $previous);
}
/**
* @return string
*/
public function formatException() {
$this->messageArray['File'] = ($this->file === '') ? $this->getFile() : $this->file;
$this->messageArray['Line'] = ($this->line === '') ? $this->getLine() : $this->line;
$this->messageArray['File'] = $this->getFile();
$this->messageArray['Line'] = $this->getLine();
$this->messageArray['Message'] = $this->getMessage();
$this->messageArray['Code'] = $this->getCode();
......
......@@ -17,7 +17,7 @@ class ErrorHandler {
// This error code is not included in error_reporting
return false;
}
throw new CodeException('Catchable Error: ' . $message, $severity, NULL, $file, $line);
throw new CodeException('Catchable Error: ' . $message, $severity, NULL);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment