Check out example codes for "two exceptions same catch c#". It will help you in understanding the concepts better.

Code Example 1

try
{
// Code
}
catch (Exception ex) when (ex is ArbitraryType1 || ex is ArbitraryType2)
{
  throw;
}

Learn ReactJs, React Native from akashmittal.com