Skip to content

[Messenger] Use transport agnostic exceptions instead of throwing AMQPException  #30346

@ghost

Description

Description
If using AMQP, and RabbitMQ is not available, for example, dispatching a message through the bus will throw AMQPExceptions. I think this should be hidden for the client code that uses the bus, since the actual transport may vary.

Example

try {
      $this->messageBus->dispatch((new SampleMessage());
} catch (\AMQPException $e) {
    // Do sth
}``` 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy