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
{{ message }}
Repository navigation
DartCode thinks the SocketException is uncaught even though the try-catch works as expected #2085
I parse a xml from a remote server to have a list of tracks. However I wanna show a error message if it fails either parsing the xml or if it can't even get the xml.
So, for my testing I run that method with wifi turned off.
When I run the code with the breakpoints in Uncaught Exceptions options enabled I always get:
Exception has occurred.
SocketException (SocketException: Failed host lookup: 'vip.aersia.net' (OS Error: No address associated with hostname, errno = 7))
As seen here:
However after I press "Step Into" enough times to get rid of the Uncaught Exception message I get the following:
Which simply appears to mean that the exception was actually caught.
Activity
DanTup commentedon Nov 4, 2019
Thanks for the report! There's an existing issue about this at #2063 so I'll close this one as a dupe.