Files
nsqphp/src/Exception/ConsumerException.php
2021-02-26 00:59:52 +03:00

16 lines
329 B
PHP

<?php
declare(strict_types=1);
namespace Nsq\Exception;
use Nsq\Frame\Response;
final class ConsumerException extends NsqException
{
public static function response(Response $response): self
{
return new self(sprintf('Consumer receive response "%s" from nsq, which not expected. ', $response->data));
}
}