Programming Language PHP

Namespace Oro\Component\MessageQueue\Exception

Class MessageProcessorNotSpecifiedException

Method/Function create

Total Examples 1

1 code examples of PHP Oro\Component\MessageQueue\Exception\MessageProcessorNotSpecifiedException::create extracted from open source projects

Was this example useful?
0
                                                    /**
     * @inheritdoc
     */
    public function process(MessageInterface $message, SessionInterface $session): string
    {
        if ($this->missingMessageProcessorName) {
            throw MessageProcessorNotFoundException::create($this->missingMessageProcessorName);
        }

        throw MessageProcessorNotSpecifiedException::create();
    }
                                            
MessageProcessorNotSpecifiedException's Other Methods