Refactored Exceptions

This commit is contained in:
Netkas 2023-06-16 00:53:26 -04:00
parent ffdaaebfbc
commit db47d0fc0e
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
8 changed files with 67 additions and 14 deletions

View file

@ -9,11 +9,10 @@
{
/**
* @param string $message
* @param int $code
* @param Throwable|null $previous
*/
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
public function __construct(string $message = "", ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
parent::__construct($message, ($previous ? $previous->getCode() : 0), $previous);
}
}