int Kernel::doExecution(ProgramArgs& args) { if (m_hardCoreDebug) { int status = innerRun(args); return status; } int status = 1; try { status = innerRun(args); } catch (pdal::pdal_error const& e) { Utils::printError(e.what()); return 1; } catch (std::exception const& e) { Utils::printError(e.what()); return 1; } catch (...) { Utils::printError("Caught unexpected exception."); return 1; } return status; }
int Kernel::do_execution() { if (m_reportDebug) { std::cout << getPDALDebugInformation() << std::endl; return 0; } if (m_hardCoreDebug) { int status = innerRun(); return status; } int status = 1; try { status = innerRun(); } catch (pdal::pdal_error const& e) { const std::string s("PDAL: "); printError(s + e.what()); return 1; } catch (std::exception const& e) { const std::string s("PDAL: "); printError(s + e.what()); return 1; } catch (...) { printError("PDAL: "); return 1; } return status; }