LCIO
02.17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
src
IMPL
LCIOExceptionHandler.cc
Go to the documentation of this file.
1
2
#include <
exception
>
3
#include <
iostream
>
4
#include <
cstdlib
>
5
#include "
IMPL/LCIOExceptionHandler.h
"
6
7
namespace
IMPL {
8
9
void
LCIOExceptionHandler::setupHandlers
() {
10
// thread safe functions ... but deprecated functions ...
11
// std::set_unexpected( &LCIOExceptionHandler::handler ) ;
12
// std::set_terminate( &LCIOExceptionHandler::handler ) ;
13
}
14
15
void
LCIOExceptionHandler::handler
() {
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
}
std::endl
T endl(T...args)
cstdlib
iostream
IMPL::LCIOExceptionHandler::setupHandlers
static void setupHandlers()
Setup the unexpected and terminate std handlers.
Definition:
LCIOExceptionHandler.cc:9
std::exception::what
T what(T...args)
IMPL::LCIOExceptionHandler::handler
static void handler()
The unexpected and terminate handler function.
Definition:
LCIOExceptionHandler.cc:15
exception
std::cout
LCIOExceptionHandler.h
Generated on Thu Dec 16 2021 15:42:54 for LCIO by
1.8.5