Using C#, is there a better way to handle multiple types of exceptions rather than a bunch of ugly catch blocks?
What is considered best practice for this type of situation?
For example:
try
{
// Many types of exceptions can be thrown
}
catch (CustomException ce)
{
...
}
catch (AnotherCustomException ace)
{
...
}
catch (Exception ex)
{
...
}