ATLAS Offline Software
Control
AthContainers
AthContainers
tools
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-2024 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::reportMessageStandalone(ctx, "ERROR", __FILE__, __LINE__, msg)
32
33
#define ATHCONTAINERS_WARNING(ctx, msg) \
34
AthContainers_detail::reportMessageStandalone(ctx, "WARNING", __FILE__, __LINE__, msg)
35
36
37
namespace
AthContainers_detail
{
38
39
void
reportMessageStandalone (
const
std::string& context,
40
const
std::string& severity,
41
const
std::string&
file
,
int
line
,
42
const
std::string&
msg
);
43
44
std::string
typeinfoName
(
const
std::type_info& ti);
45
46
}
// namespace AthContainers_detail
47
48
49
#else
50
51
#include "
AthenaKernel/errorcheck.h
"
52
#include "GaudiKernel/System.h"
53
54
#define ATHCONTAINERS_ERROR(ctx, msg) \
55
errorcheck::ReportMessage(MSG::ERROR, __LINE__, __FILE__, "", ATLAS_PACKAGE_NAME, ctx).msgstream() << msg
56
57
#define ATHCONTAINERS_WARNING(ctx, msg) \
58
errorcheck::ReportMessage(MSG::WARNING, __LINE__, __FILE__, "", ATLAS_PACKAGE_NAME, ctx).msgstream() << msg
59
60
namespace
AthContainers_detail
{
61
62
using
System::typeinfoName
;
63
64
}
// namespace AthContainers_detail
65
66
#endif // not XAOD_STANDALONE
67
68
69
#endif // not ATHCONTAINERS_ERROR_H
checkFileSG.line
line
Definition:
checkFileSG.py:75
AthContainers_detail
Definition:
concurrent_vector.h:54
Athena::typeinfoName
std::string typeinfoName(const std::type_info &ti)
Convert a type_info to a demangled string.
Definition:
AthenaKernel/src/ClassName.cxx:23
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
Generated on Mon Mar 10 2025 21:10:26 for ATLAS Offline Software by
1.8.18