public async Task <string> GetFullName() { try { string fullName = await UserInfoHelper.GetFullNameAsync(); FullName = fullName; } catch (Hp.Bridge.Client.Exceptions.HsaClientException e) { // This was expected FullName = "HsaClientException: " + e.Message; } catch (System.AggregateException e) when(e.InnerException is Hp.Bridge.Client.Exceptions.HsaClientException) { // This is what happened FullName = "AggregateException->HsaClientException: " + e.InnerException.Message; } catch (Exception e) { FullName = e.GetType().ToString() + ": " + e.Message; } return(FullName); }