Refactored Exceptions
This commit is contained in:
parent
ffdaaebfbc
commit
db47d0fc0e
8 changed files with 67 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue