| 237 | |
| 238 | |
| 239 | int Kernel::doExecution(ProgramArgs& args) |
| 240 | { |
| 241 | if (m_hardCoreDebug) |
| 242 | return innerRun(args); |
| 243 | |
| 244 | int status = 1; |
| 245 | try |
| 246 | { |
| 247 | status = innerRun(args); |
| 248 | } |
| 249 | catch (pdal::pdal_error const& e) |
| 250 | { |
| 251 | Utils::printError(e.what()); |
| 252 | return 1; |
| 253 | } |
| 254 | catch (std::exception const& e) |
| 255 | { |
| 256 | Utils::printError(e.what()); |
| 257 | return 1; |
| 258 | } |
| 259 | catch (...) |
| 260 | { |
| 261 | Utils::printError("Caught unexpected exception."); |
| 262 | return 1; |
| 263 | } |
| 264 | |
| 265 | return status; |
| 266 | } |
| 267 | |
| 268 | |
| 269 | int Kernel::innerRun(ProgramArgs& args) |
nothing calls this directly
no test coverage detected