ably / ably-asset-tracking-android

Android client SDKs for the Ably Asset Tracking service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log ConnectionExceptions with status codes other than 4xx or 5xx

KacperKluka opened this issue · comments

Now, there are a lot of places in which we create the ConnectionException and in the future, there will be even more places. Therefore, in order to log all exceptions that have the statusCode set to something else than 4xx or 5xx we should think about some kind of an interceptor that would be launched each time a ConnectionException is created.

I don't think there's any case that's not a 4xx or a 5xx. I think I'd prefer that there's an error logged in that case - even if statusCode == 0.

Originally posted by @paddybyers in #929 (comment)

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3333