Answers for "c# api multiple exceptions same handler"

C#
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# api multiple exceptions same handler"

C# Answers by Framework

Browse Popular Code Answers by Language