Tests a'hoy
This commit is contained in:
parent
532025a348
commit
57db949a9c
5 changed files with 210 additions and 5 deletions
|
@ -28,9 +28,9 @@ class DisplayException extends PterodactylException
|
|||
* @param string $message
|
||||
* @param Throwable|null $previous
|
||||
* @param string $level
|
||||
* @internal param mixed $log
|
||||
* @param int $code
|
||||
*/
|
||||
public function __construct($message, Throwable $previous = null, $level = self::LEVEL_ERROR)
|
||||
public function __construct($message, Throwable $previous = null, $level = self::LEVEL_ERROR, $code = 0)
|
||||
{
|
||||
$this->level = $level;
|
||||
|
||||
|
@ -38,7 +38,7 @@ class DisplayException extends PterodactylException
|
|||
Log::{$level}($previous);
|
||||
}
|
||||
|
||||
parent::__construct($message);
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue