-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate documented ConnectionException
thrown by Publisher.Builder.start
and how users are meant to handle it
#876
Comments
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3213 |
ConnectionException
thrown by Publisher.Builder
and how users are meant to handle itConnectionException
thrown by Publisher.Builder.start
and how users are meant to handle it
I don't think this should throw There's an argument for throwing an exception if the underlying connection is in the
|
I think this exception might be only thrown here which repackages AblyExceptions thrown by If I'm reading this correctly, it checks if the connection configuration is valid. Connection configuration is created here and is using default values for all fields reviewed by @KacperKluka can you confirm if that is correct? |
The Initially, the |
Thanks for pointing out more possible causes. After looking at those classes, those exceptions can occur when using AAT, but they all seem related to the connection configuration validation. Could we change the exception comment to indicate that the cause is configuration related? @lawrence-forooghian @paddybyers @QuintinWillison wdyt? |
The documentation for
Publisher.Builder.start
states that it can throw aConnectionException
"if something goes wrong during connection initialization":ably-asset-tracking-android/publishing-sdk/src/main/java/com/ably/tracking/publisher/Publisher.kt
Line 274 in 355bc21
It seems like this is because
DefaultAbly
can throw aConnectionException
"if something goes wrong during Ably SDK initialization".ably-asset-tracking-android/common/src/main/java/com/ably/tracking/common/Ably.kt
Line 249 in 355bc21
We should understand what are the circumstances under which this might happen and explain to users how they are meant to recover from this situation. Can we handle it in a way that’s consistent with #871?
The text was updated successfully, but these errors were encountered: