Printing an exception for testing