Printing out details of exceptions when they're raised.