27 lines
526 B
PHP
27 lines
526 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Nih\CommandBuilder;
|
|
|
|
/**
|
|
* A PHP error occured during an operation on a process resource.
|
|
*/
|
|
final class ChildException extends CommandException
|
|
{
|
|
public static function handleError(
|
|
int $severity,
|
|
string $message,
|
|
string $filename,
|
|
int $line,
|
|
): never {
|
|
throw new self(
|
|
message: $message,
|
|
code: 0,
|
|
severity: $severity,
|
|
filename: $filename,
|
|
line: $line,
|
|
);
|
|
}
|
|
}
|