Guest User

Untitled

a guest
Nov 14th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. // bad:
  2.  
  3. try
  4. {
  5. //....
  6. }
  7. catch (MyException ex)
  8. {
  9. Log.Error(ex);
  10. throw ex;
  11. }
  12.  
  13. // good:
  14. try
  15. {
  16. // ....
  17. }
  18. catch (MyException ex)
  19. {
  20. Log.Error(ex);
  21. throw;
  22. }
Add Comment
Please, Sign In to add comment