for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DrMVC\Router;
class Exception extends \Exception
{
public function __construct(string $message = "", int $code = 0, \Throwable $previous = null)
parent::__construct($message, $code, $previous);
$this->errorLog(
"Uncaught Error: " . $this->getMessage() . " in " . $this->getFile() . ":" . $this->getLine() . "\n"
. "Stack trace:\n" . $this->getTraceAsString() . "\n"
. " thrown in " . $this->getFile() . " on line " . $this->getLine()
);
}
public function errorLog(string $error)
error_log($error);
return false;