phalcon/cphalcon · error · Phalcon\Queue\Exceptions\InvalidDestinationException
This transport can only {action} a Queue destination
Error message
This transport can only {action} a Queue destination What it means
Error "This transport can only {action} a Queue destination" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Queue/Adapter/QueueDestinationGuard.zep:42
use Phalcon\Queue\Exceptions\InvalidDestinationException;
/**
* Shared "destination must be a queue" guard. Producers (on send) and contexts
* (on createConsumer) both reject any non-queue destination with the same typed
* exception; this keeps that single rule in one place. The `action` verb
* ("send to", "consume from") tailors the message to the caller.
*/
class QueueDestinationGuard
{
/**
* Throws InvalidDestinationException unless the destination is a queue.
*
* @phpstan-assert QueueInterface $destination
*/
public static function assertQueue(<DestinationInterface> destination, string action) -> void
{
if unlikely !(destination instanceof QueueInterface) {
throw new InvalidDestinationException(action);
}
}
}
View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Queue/Adapter/QueueDestinationGuard.zep:42 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21).
Data as JSON: /api/errors/a4c6ec3d56be2636.
Report an issue: GitHub.