Hi
I can not use IsAny500 to get corrent return value of exception. please check the png. my version is 4.0.42.
try
{
await _service.ChangePassword(pwd);
await _service.Logout();
ViewModelStatus = new ViewModelStatus(UIConstants.UPDATE_SUCCESS, false, MessageType.Success, TipsType.DialogDisappearAuto);
ShowViewModel<LoginViewModel>();
}
catch (WebServiceException ex)
{
if (ex.IsAny500())
{
ViewModelStatus = new ViewModelStatus(ex.ErrorMessage, false, MessageType.Success, TipsType.DialogDisappearAuto);
}
else
{
ViewModelStatus = new ViewModelStatus(UIConstants.WEB_EXCEPTION, false, MessageType.Success, TipsType.DialogDisappearAuto);
}
}
catch (Exception ex)
{
Xamarin.Insights.Report(ex);
}