Exception handling within an Exception in C#
Posted
by Shrewd Demon
on Stack Overflow
See other posts from Stack Overflow
or by Shrewd Demon
Published on 2010-05-18T09:13:27Z
Indexed on
2010/05/18
9:30 UTC
Read the original article
Hit count: 577
hi,
i know this could be a little weird but a doubt is a doubt afterall... what would happen in the following situation...
private void SendMail()
{
try
{
//i try to send a mail and it throws an exception
}
catch(Exception ex)
{
//so i will handle that exception over here
//and since an exception occurred while sending a mail
//i will log an event with the eventlog
//All i want to know is what if an exception occurs here
//while writing the error log, how should i handle it??
}
}
Thank you.
© Stack Overflow or respective owner