![]() 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/old/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Exception/ |
<?php namespace PhpAmqpLib\Exception; class AMQPTimeoutException extends \RuntimeException implements AMQPExceptionInterface { /** * @var int|float|null */ private $timeout; public function __construct($message = '', $timeout = 0, $code = 0, \Exception $previous = null) { parent::__construct($message, $code, $previous); $this->timeout = $timeout; } /** * @param int|float|null $timeout * @param int $code * @return self */ public static function writeTimeout($timeout, $code = 0) { return new self('Error sending data. Connection timed out.', $timeout, $code); } /** * @return int|float|null */ public function getTimeout() { return $this->timeout; } }