LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCIOExceptionHandler.cc
Go to the documentation of this file.
1 
2 #include <exception>
3 #include <iostream>
4 #include <cstdlib>
6 
7 namespace IMPL {
8 
10  // thread safe functions ... but deprecated functions ...
11  // std::set_unexpected( &LCIOExceptionHandler::handler ) ;
12  // std::set_terminate( &LCIOExceptionHandler::handler ) ;
13  }
14 
16  try {
17  throw ;
18  }
19  catch( std::exception& e) {
20  std::cout << " A runtime error has occured : "
21  << e.what()
22  << std::endl
23  << " the program will have to be terminated - sorry." << std::endl ;
24  exit(1) ;
25  }
26  }
27 }
T endl(T...args)
static void setupHandlers()
Setup the unexpected and terminate std handlers.
T what(T...args)
static void handler()
The unexpected and terminate handler function.