ably-java icon indicating copy to clipboard operation
ably-java copied to clipboard

Change the error code of "Connection resume failed" error

Open KacperKluka opened this issue 3 years ago • 1 comments

When a new connection is established all pending messages receive a "Connection resume failed" error which is created like this:

new ErrorInfo("Connection resume failed", 500, 50000)

Both 500 and 50000 are described as "internal error" which isn't giving too much information and might not be the best explanation of what's happening.

Therefore, we might create and assign a distinct error code to this exception which will allow the SDK clients to recognize and distinguish it more easily. What rules do we follow when creating a new status code? What should the code for this error be?

┆Issue is synchronized with this Jira Task by Unito

KacperKluka avatar Apr 06 '22 11:04 KacperKluka

See this internal Slack message written by me and the messages that follow it, as that brings in a lot of context and history from others. I'm not sure it came to any conclusions, but it would be a good starting point for us writing down a standard somewhere.

QuintinWillison avatar Apr 25 '22 08:04 QuintinWillison