How-to articles, tricks, and solutions about ERROR-HANDLING

Disabling Strict Standards in PHP 5.4

To disable strict standards in PHP 5.4, you can add the following line of code to your PHP script:

Does a finally block always get executed in Java?

In Java, a finally block is guaranteed to be executed, unless the virtual machine exits abruptly due to an uncaught exception or a call to System.exit.

How do I print an exception in Python?

You can print an exception in Python by using the print() function and passing the exc variable which is the default variable name for an exception.