You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the current architecture, LinkException cannot be sealed because various link implementations (which are in different packages, e.g. gql_http_link, gql_dio_link, gql_websocket_link) use different implementations of exceptions which might attack more information on what happened.
If LinkException would use a
sealed
class then we would be enforced to handle/decide not to handle, different exceptions.Right now I go in to the source code to see what I want to handle, such as
HttpLinkParserException
etcgql/links/gql_link/lib/src/exceptions.dart
Lines 5 to 18 in 03186c8
Not sure if there are technical limitations for why this is not the case or if it just hasn't been updated, wanted to make the ticket either way!
The text was updated successfully, but these errors were encountered: