Warning, file /DD4hep/UtilityApps/src/main.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef UTILITYAPPS_SRC_MAIN_H
0002 #define UTILITYAPPS_SRC_MAIN_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include <stdexcept>
0017 #include <iostream>
0018
0019 int main_wrapper(int argc, char** argv );
0020
0021
0022 int main(int argc, char** argv) {
0023 try {
0024 return main_wrapper(argc,argv);
0025 }
0026 catch(const std::exception& e) {
0027 std::cout << "Got uncaught exception: " << e.what() << std::endl;
0028 }
0029 catch (...) {
0030 std::cout << "Got UNKNOWN uncaught exception." << std::endl;
0031 }
0032 return EINVAL;
0033 }
0034
0035 #endif