Catch multiple exceptions at once?
Catch multiple exceptions at once?
Catch multiple exceptions at once?
Re: Catch multiple exceptions at once?
Catch `System.Exception` and switch on the types
```
catch (Exception ex)
{
if (ex is FormatException || ex is OverflowException)
{
WebId = Guid.Empty;
}
else
throw;
}
```
```
catch (Exception ex)
{
if (ex is FormatException || ex is OverflowException)
{
WebId = Guid.Empty;
}
else
throw;
}
```