Select from following answers:- Catch(Exception ex) { LogException. LogError (ex); throw;}

- Catch { var cx = new Exception() throw cx;}
- Catch { LogException. LogError(new Exception()); throw;}
- All Above
keep the original stack trace information with the exception, use only the throw statement.
stack trace is restarted, if we re-throw exception using specifying the exception in the throw statement,
Show Correct Answer
Source: https://msdn.microsoft.com | |
Alert Moderator