for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PHPTdGram\TdClient\Exception;
use PHPTdGram\Schema\TdObject;
/**
* @author Aurimas Niekis <[email protected]>
*/
class QueryTimeoutException extends TdClientException
{
private TdObject $packet;
public function __construct(TdObject $packet)
$this->packet = $packet;
parent::__construct(
sprintf(
'Query for "%s" packet received timeout',
$packet->getTdTypeName()
)
);
}
public function getPacket(): TdObject
return $this->packet;