Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 44.44% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | abstract class Exception extends \Exception |
||
6 | { |
||
7 | 73 | /** |
|
8 | * @param string $format |
||
9 | 73 | * @param mixed ...$args |
|
10 | * @return static |
||
11 | */ |
||
12 | public static function withMessage(string $format, ...$args): self |
||
13 | 73 | { |
|
14 | return new static(\vsprintf($format, $args)); |
||
15 | } |
||
16 | |||
17 | public function __construct($message, $code = 0, \Throwable $previous = null) |
||
30 | } |
||
31 | } |
||
32 |