-
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
There is an Amp\Http\Client\SocketException exception that covers different types of connection errors. However, I found out that it's not possible to distinguish between them programmatically, they are all the same except for the error message.
I need to differentiate a specific error, and the only way to do that is to check if the error message contains a substring, which is not reliable.
What do you think we can do about this? My first thought is to add unique exception codes to all SocketException cases.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels