- Removed hard-coded configs

This commit is contained in:
Dave Mc Nicoll committed 2020-10-06 11:12:11 -04:00
1 parent a7dcdf4ee7
commit bec3c36657
7 files changed
+80 -83

No files matched your search

+26 -26
View File
@@ -1,26 +1,26 @@
<?php
namespace TheBugs\Exception;
class JavascriptException extends \Exception {
protected $url;
protected $stacktrace;
public function __construct(string $message, int $code, Exception $previous = null, string $file, int $line, string $url, array $trace)
{
$this->message = $message;
$this->code = $code;
$this->previous = $previous;
$this->file = $file;
$this->line = $line;
$this->url = $url;
$this->stacktrace = $trace;
}
public function __toString() {
return __CLASS__ . ": [{$this->url}:{$this->code}]: {$this->message}\n" . json_encode($this->stacktrace);
}
}
<?php
namespace TheBugs\Exception;
class JavascriptException extends \Exception {
protected $url;
protected $stacktrace;
public function __construct(string $message, int $code, Exception $previous = null, string $file, int $line, string $url, array $trace)
{
$this->message = $message;
$this->code = $code;
$this->previous = $previous;
$this->file = $file;
$this->line = $line;
$this->url = $url;
$this->stacktrace = $trace;
}
public function __toString() {
return __CLASS__ . ": [{$this->url}:{$this->code}]: {$this->message}\n" . json_encode($this->stacktrace);
}
}