output exception if occurred