- Is it possible to catch all WCF statements in a single catch statement? - i.e on the code below i have 2 catches for WCF but my codes reaction to both is the same so i dont want to duplicate code
- Will both WCF catches, catch ALL WCF errors or am i missing any ?
Note i have seen these list here
try
{
// Some code......
}
catch (CommunicationException exception) // WCF Exception
{
}
catch (TimeoutException exception) // WCF Exception -
{
}
catch (Exception ex)
{
// Standard exception
}