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
A request that fails on Android (due to a network error) is currently throwing a Java.Net.IOException, which (in Xamarin.Android) inherits directly from System.Exception.
This is unfortunate because the only way of dealing with this in a PCL is to catch every possible System.Exception, and use reflection from there (or IoC) since you obviously can't use the Java.* classes in a PCL.
I don't suggest ModernHttpClient marshals every exception, but maybe it makes sense to catch all Java.Lang.IOExceptionhere and marshal them into System.Net.WebException. #153 seems related.
Don't know about iOS?
The text was updated successfully, but these errors were encountered:
I get this problem when using a Wi-Fi network that requires you to login in the browser before being able to reach internet hosts, and I am connected to Wi-Fi but not logged in. A Java.Net.ConnectionException occurs which derives from Java.Net.IOException.
A request that fails on Android (due to a network error) is currently throwing a
Java.Net.IOException
, which (in Xamarin.Android) inherits directly fromSystem.Exception
.This is unfortunate because the only way of dealing with this in a PCL is to catch every possible
System.Exception
, and use reflection from there (or IoC) since you obviously can't use theJava.*
classes in a PCL.I don't suggest ModernHttpClient marshals every exception, but maybe it makes sense to catch all
Java.Lang.IOException
here and marshal them intoSystem.Net.WebException
.#153 seems related.
Don't know about iOS?
The text was updated successfully, but these errors were encountered: