ATLAS Offline Software
Loading...
Searching...
No Matches
PscIssues.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12#ifndef PSC_ISSUES_H
13#define PSC_ISSUES_H
14
15#include "ers/ers.h"
16#include <string>
17
18// The base PSC Issue
20 psc,
21 Issue,
24)
25
26// A configuration issue in the PSC
28 psc,
30 psc::Issue,
31 "Configuration Issue: " << reason,
33 ((const char *) reason)
34)
35
36// TODO - check whether we need to keep the stuff below
37// Declare a PSC Message Issue
38ERS_DECLARE_ISSUE( ers, PSCMessage, ERS_EMPTY, ERS_EMPTY)
39
40// The blank macro arguments confuse cppcheck.
41#ifdef __CPPCHECK__
42#define ERS_PSC_WARNING( message )
43#define ERS_PSC_ERROR( message )
44#define ERS_PSC_FATAL( message )
45#else
46#define ERS_PSC_WARNING( message ) \
47{ \
48 ERS_REPORT_IMPL( ers::warning, ers::PSCMessage, message, ); \
49}
50
51#define ERS_PSC_ERROR( message ) \
52{ \
53 ERS_REPORT_IMPL( ers::error, ers::PSCMessage, message, ); \
54}
55
56#define ERS_PSC_FATAL( message ) \
57{ \
58 ERS_REPORT_IMPL( ers::fatal, ers::PSCMessage, message, ); \
59}
60#endif
61
62#endif /* PSC_ISSUES_H */
ERS_DECLARE_ISSUE_BASE(afp, CantReadCool, dqm_core::Exception, "Cannot read folder '"<< folder<< "' from COOL database '"<< database<< "'", ERS_EMPTY,((std::string) database)((std::string) folder))
Configuration ERS_EMPTY
Definition PscIssues.h:32
ConfigurationIssue
Definition PscIssues.h:29
ERS_DECLARE_ISSUE(psc, Issue, ERS_EMPTY, ERS_EMPTY) ERS_DECLARE_ISSUE_BASE(psc
Configuration Issue
Definition PscIssues.h:31
Definition Config.h:26