![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/vendor/nesk/rialto/src/Exceptions/ |
<?php namespace Nesk\Rialto\Exceptions; use Symfony\Component\Process\Process; class IdleTimeoutException extends \RuntimeException { /** * Check if the exception can be applied to the process. */ public static function exceptionApplies(Process $process): bool { if (Node\FatalException::exceptionApplies($process)) { $error = json_decode($process->getErrorOutput(), true); return $error['message'] === 'The idle timeout has been reached.'; } return false; } /** * Constructor. */ public function __construct(float $timeout, \Throwable $previous = null) { $timeout = number_format($timeout, 3); parent::__construct(implode(' ', [ "The idle timeout ($timeout seconds) has been exceeded.", 'Maybe you should increase the "idle_timeout" option.', ]), 0, $previous); } }