Closed rela589n closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
410067f
) 100.00% compared to head (1a0091d
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@fre5h , Done
Hi there!
In some cases client code would like to catch
CentrifugoException
and find out what's actually gone wrong. For instance, whenassertValidResponseStatusCode
throws exception, it just gives an error message and it's hard to find out the root cause or to log anything, since there's not that much context. Also, if trying to rely on symfony http client, AFAIK it doesn't log the actual responses, but writes just uri sting and response status code instead.Therefore, this PR adds
ResponseInterface $response
property toCentrifugoException
so that it may be caught by the client code and alalyzed somehow (for instance, logged).Please, let me know what you think on this matter