Functions | |
void | lcio_unexpected () |
void IMPL::lcio_unexpected | ( | ) |
Method catches any std::exception, prints the message to stdout and then exits the program.
Definition at line 16 of file LCIOExceptionHandler.cc.
00016 { 00017 00018 try{ 00019 00020 throw ; 00021 00022 }catch( std::exception& e){ 00023 00024 std::cout << " A runtime error has occured : " 00025 << e.what() 00026 << std::endl 00027 << " the program will have to be terminated - sorry." << std::endl ; 00028 exit(1) ; 00029 } 00030 }