exception-handling 360

  1. Catch multiple exceptions in one line (except block)
  2. Catch multiple exceptions at once?
  3. Manually raising (throwing) an exception in Python
  4. Why is it bad style to `rescue Exception => e` in Ruby?
  5. Node.js Best Practice Exception Handling
  6. Uncatchable ChuckNorrisException
  7. Try/Except in Python: How do you properly ignore Exceptions?
  8. Begin, Rescue and Ensure in Ruby?
  9. How do you test that a Python function throws an exception?
  10. How to print the full traceback without halting the program?
  11. Why catch and rethrow an exception in C#?
  12. Python try-else
  13. Why should I not wrap every block in “try”-“catch”?
  14. How slow are Java exceptions?
  15. What is the proper way to re-throw an exception in C#?
  16. When should I really use noexcept?
  17. What is a StackOverflowError?
  18. Is there a difference between “throw” and “throw ex”?
  19. Get connection string from App.config
  20. Why can I throw null in Java?
  21. Do you (really) write exception safe code?
  22. WPF global exception handler
  23. Get exception description and stack trace which caused an exception, all as a string
  24. Best practices for catching and re-throwing .NET exceptions
  25. How to print an error in Python?
  26. How to use ELMAH to manually log errors
  27. Best way to log a Python exception
  28. Why is “except: pass” a bad programming practice?
  29. How can I handle the warning of file_get_contents() function in PHP?
  30. Is it a good practice to use try-except-else in Python?
  31. What happens if a finally block throws an exception?
  32. What really happens in a try { return x; } finally { x = null; } statement?
  33. How to use RSpec's should_raise with any kind of exception?
  34. Custom Exceptions in JavaScript
  35. Globally catch exceptions in a WPF application?
  36. Will code in a Finally statement fire if I return a value in a Try block?
  37. Is it ever advantageous to use 'goto' in a language that supports loops and functions? If so, why?
  38. System.Security.SecurityException when writing to Event Log
  39. Why is try {…} finally {…} good; try {…} catch{} bad?
  40. Catch an exception thrown by an async method
  41. .NET Global exception handler in console application
  42. Why are empty catch blocks a bad idea?
  43. Throw HttpResponseException or return Request.CreateErrorResponse?
  44. Why use finally in C#?
  45. Catching multiple exception types in one catch block
  46. C++ display stack trace on exception
  47. How do you implement a re-try-catch?
  48. How to throw a C++ exception
  49. Best Practice for Exception Handling in a Windows Forms Application?
  50. Exception thrown in catch and finally clause