k911/swoole-bundle

View on GitHub
src/Bridge/Symfony/Messenger/Exception/ReceiverNotAvailableException.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace K911\Swoole\Bridge\Symfony\Messenger\Exception;

use Symfony\Component\Messenger\Exception\TransportException;

final class ReceiverNotAvailableException extends TransportException
{
    public static function make(): self
    {
        throw new self('Swoole Server Task transport does not implement Receiver interface methods. Messages sent via Swoole Server Task transport are dispatched inside task worker processes.');
    }
}