ATLAS Offline Software
error.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
21 #ifndef ATHCONTAINERS_ERROR_H
22 #define ATHCONTAINERS_ERROR_H
23 
24 
25 #ifdef XAOD_STANDALONE
26 
27 #include <string>
28 #include <typeinfo>
29 
30 #define ATHCONTAINERS_ERROR(ctx, msg) \
31  AthContainers_detail::reportErrorStandalone(ctx, __FILE__, __LINE__, msg)
32 
33 
34 namespace AthContainers_detail {
35 
36 void reportErrorStandalone (const std::string& context,
37  const std::string& file, int line,
38  const std::string& msg);
39 
40 std::string typeinfoName (const std::type_info& ti);
41 
42 } // namespace AthContainers_detail
43 
44 
45 #else
46 
48 #include "GaudiKernel/System.h"
49 
50 #define ATHCONTAINERS_ERROR(ctx, msg) \
51  errorcheck::ReportMessage(MSG::ERROR, __LINE__, __FILE__, "", ATLAS_PACKAGE_NAME, ctx).msgstream() << msg
52 
53 namespace AthContainers_detail {
54 
55 using System::typeinfoName;
56 
57 } // namespace AthContainers_detail
58 
59 #endif // not XAOD_STANDALONE
60 
61 
62 #endif // not ATHCONTAINERS_ERROR_H
checkFileSG.line
line
Definition: checkFileSG.py:75
AthContainers_detail
Definition: concurrent_vector.h:54
file
TFile * file
Definition: tile_monitor.h:29
errorcheck.h
Helpers for checking error return status codes and reporting errors.
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7