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
[AndroidClientHandler] Wrap Java exceptions in .NET ones
Context: 60363ef
This commit a follow-up to 60363ef in that it causes less Java
exceptions to "leak" to applications which use code shared between
platforms that might not be able to check for Java exception types
directly (because they don't link against `Mono.Android.dll`). However,
instead of making the behavior optional, as implemented in 60363ef,
this commit unconditionally wraps `Java.IO.Exception` and some of its
derivatives in the standard .NET `WebException`. This makes the handler
to behave in a manner that's closer to how other `HttpClient` custom
handlers behave.
The `$(AndroidBoundExceptionType)` MSBuild property must be set to
`System` in order to use the wrapped exceptions.
0 commit comments