printing the exception