DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SampleIssues.hpp
Go to the documentation of this file.
1/*
2 * DUNE DAQ modification notice:
3 * This file has been modified from the original ATLAS ers source for the DUNE DAQ project.
4 * Fork baseline commit: 8267df82a4f6fe6bf02c4014923eba19eddc4614 (2020-04-14).
5 * Renamed since fork: yes (from ers/SampleIssues.h to include/ers/SampleIssues.hpp).
6 *
7 * Original copyright:
8 * Copyright (C) 2001-2020 CERN for the benefit of the ATLAS collaboration.
9 * Licensed under the Apache License, Version 2.0.
10 */
11
12#ifndef ERS_SAMPLE_ISSUES_H
13#define ERS_SAMPLE_ISSUES_H
14
15/*
16 * SampleIssues.h
17 * ers
18 *
19 * Created by Matthias Wiesmann on 24.01.05.
20 * Modified by Serguei Kolos on 24.08.05.
21 * Copyright 2005 CERN. All rights reserved.
22 *
23 */
24
25#include <ers/Issue.hpp>
26
32
35ERS_DECLARE_ISSUE_HPP(ers, // namespace
36 File, // issue class name
37 ERS_EMPTY, // no message
38 ((const char*)file_name) // single attribute
39)
40
41
45 CantOpenFile, // issue class name
46 ers::File, // base class name
47 "Can not open \"" << file_name << "\" file", // message
48 ((const char*)file_name), // base class attributes
49 ERS_EMPTY // no attributes in this class
50)
51
52
55 FileDoesNotExist, // issue class name
56 ers::File, // base class name
57 "File \"" << file_name << "\" does not exist", // message
58 ((const char*)file_name), // base class attributes
59 ERS_EMPTY // no attributes in this class
60)
61
62
66 PermissionDenied, // issue class name
67 ers::File, // base class name
68 "You are not allowed to open \"" << file_name << "\" file, which has " << mode
69 << " access mode", // message
70 ((const char*)file_name), // base class attributes
71 ((int)mode) // attribute of this class
72)
73
74#endif
#define ERS_DECLARE_ISSUE_HPP(namespace_name, class_name, message, attributes)
#define ERS_DECLARE_ISSUE_BASE_HPP(namespace_name, class_name, base_class_name, message, base_attributes, attributes)
#define ERS_EMPTY
CantOpenFile