exception 1,007

  1. How can I create a directory if it does not exist?
  2. Catch multiple exceptions in one line (except block)
  3. Catch multiple exceptions at once?
  4. How do you assert that a certain exception is thrown in JUnit 4 tests?
  5. Manually raising (throwing) an exception in Python
  6. Dealing with “java.lang.OutOfMemoryError: PermGen space” error
  7. Proper way to declare custom exceptions in modern Python?
  8. How to properly ignore Exceptions?
  9. How do I check if a variable exists?
  10. Uncatchable ChuckNorrisException
  11. Java: checked vs unchecked exception explanation
  12. Can I catch multiple Java exceptions in the same catch clause?
  13. IllegalArgumentException or NullPointerException for a null parameter?
  14. Is there anything like .NET's NotImplementedException in Java?
  15. How do you test that a Python function throws an exception?
  16. Begin, Rescue and Ensure in Ruby?
  17. Should a retrieval method return 'null' or throw an exception when it can't produce the return value?
  18. Why should I not wrap every block in “try”-“catch”?
  19. The case against checked exceptions
  20. When to throw an exception?
  21. When should I really use noexcept?
  22. Why do I get an UnsupportedOperationException when trying to remove an element from a List?
  23. Which exception should I raise on bad/illegal argument combinations in Python?
  24. Rethrowing exceptions in Java without losing the stack trace
  25. Is there a difference between “throw” and “throw ex”?
  26. Cannot delete directory with Directory.Delete(path, true)
  27. How to add manifest permission to android application?
  28. What's a good way to extend Error in JavaScript?
  29. How do I log a Python error with debug information?
  30. WPF global exception handler
  31. Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)
  32. What does “fatal error: unexpectedly found nil while unwrapping an Optional value” mean?
  33. Is it a good practice to use try-except-else in Python?
  34. Mockito test a void method throws an exception

  35. Exception messages in English?
  36. What could cause java.lang.reflect.InvocationTargetException?
  37. How to define custom exception class in Java, the easiest way?
  38. Python: How to ignore an exception and proceed?
  39. Is there “Break on Exception” in IntelliJ?
  40. Why is “except: pass” a bad programming practice?
  41. Which part of throwing an Exception is expensive?
  42. What happens if a finally block throws an exception?
  43. Throwing exceptions from constructors
  44. In C#, how can I rethrow InnerException without losing stack trace?
  45. Does C++ support 'finally' blocks? (And what's this 'RAII' I keep hearing about?)
  46. throwing exceptions out of a destructor
  47. PHPUnit assert that an exception was thrown?
  48. slf4j: how to log formatted message, object array, exception
  49. Could not load file or assembly … The parameter is incorrect
  50. Can constructors throw exceptions in Java?