ATLAS Offline Software
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 
13 #include <EventLoop/MessageCheck.h>
14 
15 #include <RootCoreUtils/Assert.h>
16 
17 //
18 // method implementations
19 //
20 
21 namespace 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 }
ANA_MSG_ERROR
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:294
Assert.h
MessageCheck.h
calibdata.exception
exception
Definition: calibdata.py:496
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
ANA_MSG_SOURCE
#define ANA_MSG_SOURCE(NAME, TITLE)
the source code part of ANA_MSG_SOURCE
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:133
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
str
Definition: BTagTrackIpAccessor.cxx:11
EL::Detail::report_exception
void report_exception(std::exception_ptr eptr)
print out the currently evaluated exception
Definition: PhysicsAnalysis/D3PDTools/EventLoop/Root/MessageCheck.cxx:27