I've a console application that zips files and then send them via email. It does that every hour. I wanted to know what kind of exceptions should I handle ? Let say if there's no network available when the process starts. What exception will I get then ? And what can be the other ways this can fail. So basically I'm trying to figure out what exceptions I should catch.
I got something like this
try
{
// zips files and send email
}
catch(System.Net.Mail.SmtpException e)
{
Console.WriteLine(e.toString());
}
catch(exception e)
{
}