Answers for "how to handle multiple exception in c#"

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 "how to handle multiple exception in c#"

C# Answers by Framework

Browse Popular Code Answers by Language