1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace PhpSpellcheck\Exception; |
||
6 | |||
7 | class ProcessHasErrorOutputException extends \RuntimeException implements ExceptionInterface |
||
8 | { |
||
9 | 4 | public function __construct(string $errorOutput, string $parsedText, string $command) |
|
10 | { |
||
11 | $exceptionTemplateMessage = <<<'MSG' |
||
12 | 4 | Process has generated the following output errors: |
|
13 | |||
14 | %s |
||
15 | |||
16 | With command: "%s" |
||
17 | |||
18 | For text: |
||
19 | "%s" |
||
20 | MSG; |
||
21 | |||
22 | 4 | parent::__construct( |
|
23 | 4 | \Safe\sprintf( |
|
0 ignored issues
–
show
|
|||
24 | 4 | $exceptionTemplateMessage, |
|
25 | 4 | $errorOutput, |
|
26 | 4 | $command, |
|
27 | 4 | $parsedText |
|
28 | ) |
||
29 | ); |
||
30 | 4 | } |
|
31 | } |
||
32 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.