Check out example codes for "c# multiple catch exceptions". It will help you in understanding the concepts better.
Code Example 1
// if C# v6+, you can use exception filters
catch (Exception ex) when (ex is FormatException || ex is OverflowException)
{
// do something
}
Code Example 2
catch (Exception ex)
{
if (ex is FormatException || ex is OverflowException)
{
WebId = Guid.Empty;
return;
}
throw;
}
Learn ReactJs, React Native from akashmittal.com