51 std::ostringstream log;
52 std::ostringstream err;
64 log <<
"Processing Directed graph\n";
69 log <<
"Processing Undirected graph\n";
76 if (*return_count == 0) {
77 err <<
"No result generated, report this error\n";
78 *err_msg =
pgr_msg(err.str().c_str());
79 *return_tuples = NULL;
84 *log_msg = log.str().empty()?
88 (*return_tuples) =
pgr_free(*return_tuples);
91 *err_msg =
pgr_msg(err.str().c_str());
92 *log_msg =
pgr_msg(log.str().c_str());
93 }
catch (std::exception &except) {
94 (*return_tuples) =
pgr_free(*return_tuples);
97 *err_msg =
pgr_msg(err.str().c_str());
98 *log_msg =
pgr_msg(log.str().c_str());
100 (*return_tuples) =
pgr_free(*return_tuples);
102 err <<
"Caught unknown exception!";
103 *err_msg =
pgr_msg(err.str().c_str());
104 *log_msg =
pgr_msg(log.str().c_str());