ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis/D3PDTools/EventLoop/Root/MessageCheck.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8
9//
10// includes
11//
12
14
16
17//
18// method implementations
19//
20
21namespace EL
22{
23 ANA_MSG_SOURCE (msgEventLoop, "EventLoop")
24
25 namespace Detail
26 {
27 void report_exception (std::exception_ptr eptr)
28 {
29 using namespace msgEventLoop;
30 try
31 {
32 if (eptr) {
33 std::rethrow_exception(eptr);
34 }
35 } catch (std::exception& e)
36 {
37 ANA_MSG_ERROR ("caught exception: " << e.what());
38 } catch (std::string& str)
39 {
40 ANA_MSG_ERROR ("caught exception string: " << str);
41 } catch (const char *str)
42 {
43 ANA_MSG_ERROR ("caught exception string: " << str);
44 } catch (...)
45 {
46 ANA_MSG_ERROR ("caught unknown exception");
47 }
48 }
49 }
50}
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
#define ANA_MSG_SOURCE(NAME, TITLE)
the source code part of ANA_MSG_SOURCE
void report_exception(std::exception_ptr eptr)
print out the currently evaluated exception
This module defines the arguments passed from the BATCH driver to the BATCH worker.