Print what exception is thrown