I know that this may be a bit weird, but doubt is a doubt, after all ... what will happen in the following situation ..
Private Zero SendMail () {try / i try sending a mail and it throws an exception) hold (exception preceding) {// so that I handle that exception here // And when an email is sent at the time of sending an email / I will log an event with EventGuard // All I want to know is What happens to an exception when writing an error log, how should I handle it? }}
Thanks.
I will wrap up individually Call to write on the event log with any other attempt \ catch statement .
However, eventually it depends on your specification. If it is important for the system that the failure is written on the event log, then you should throw it. However, on the basis of your example, I doubt that this is what you want to do.
Comments
Post a Comment