File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/Symfony/Component/Notifier/Bridge/Esendex Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Notifier \Bridge \Esendex ;
13
13
14
14
use Symfony \Component \HttpClient \Exception \JsonException ;
15
+ use Symfony \Component \HttpClient \Exception \TransportException as HttpClientTransportException ;
15
16
use Symfony \Component \Notifier \Exception \LogicException ;
16
17
use Symfony \Component \Notifier \Exception \TransportException ;
17
18
use Symfony \Component \Notifier \Message \MessageInterface ;
@@ -86,6 +87,9 @@ protected function doSend(MessageInterface $message): SentMessage
86
87
87
88
$ message .= sprintf (' Details from Esendex: %s: "%s". ' , $ error ['code ' ], $ error ['description ' ]);
88
89
}
90
+ } catch (HttpClientTransportException $ e ) {
91
+ // Catching this exception is useful to keep compatibility, with symfony/http-client:4.3
92
+ // See https://github.com/symfony/symfony/pull/37065
89
93
} catch (JsonException $ e ) {
90
94
}
91
95
You can’t perform that action at this time.
0 commit comments