ReadSocketTimeoutException.php 521 B

12345678910111213141516171819
  1. <?php
  2. namespace Nesk\Rialto\Exceptions;
  3. class ReadSocketTimeoutException extends \RuntimeException
  4. {
  5. /**
  6. * Constructor.
  7. */
  8. public function __construct(float $timeout, \Throwable $previous = null)
  9. {
  10. $timeout = number_format($timeout, 3);
  11. parent::__construct(implode(' ', [
  12. "The timeout ($timeout seconds) has been exceeded while reading the socket of the process.",
  13. 'Maybe you should increase the "read_timeout" option.',
  14. ]), 0, $previous);
  15. }
  16. }