Answers for "c# multiple exceptions same handler"

C#
0

two exceptions same catch c#

try
{
// Code
}
catch (Exception ex) when (ex is ArbitraryType1 || ex is ArbitraryType2)
{
  throw;
}
Posted by: Guest on September-27-2020
0

c# multiple exceptions same handler

catch (Exception ex)            
{                
    if (ex is FormatException || ex is OverflowException)
    {
        WebId = Guid.Empty;
        return;
    }

    throw;
}
Posted by: Guest on November-21-2020

Code answers related to "c# multiple exceptions same handler"

C# Answers by Framework

Browse Popular Code Answers by Language