|
||||
File indexing completed on 2025-01-30 09:18:09
0001 #ifndef UTILITYAPPS_SRC_MAIN_H 0002 #define UTILITYAPPS_SRC_MAIN_H 0003 0004 //========================================================================== 0005 // AIDA Detector description implementation 0006 //-------------------------------------------------------------------------- 0007 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN) 0008 // All rights reserved. 0009 // 0010 // For the licensing terms see $DD4hepINSTALL/LICENSE. 0011 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS. 0012 // 0013 // Author : M.Frank 0014 // 0015 //========================================================================== 0016 #include <stdexcept> 0017 #include <iostream> 0018 0019 int main_wrapper(int argc, char** argv ); 0020 0021 /// Mini wrapper to call main exception safe .... 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
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |