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
27
33
36ERS_DECLARE_ISSUE_HPP( ers, // namespace
37 File, // issue class name
38 ERS_EMPTY, // no message
39 ((const char *)file_name ) // single attribute
40 )
41
42
46 CantOpenFile, // issue class name
47 ers::File, // base class name
48 "Can not open \"" << file_name << "\" file", // message
49 ((const char *)file_name ), // base class attributes
50 ERS_EMPTY // no attributes in this class
51 )
52
53
56 FileDoesNotExist, // issue class name
57 ers::File, // base class name
58 "File \"" << file_name << "\" does not exist", // message
59 (( const char * )file_name ), // base class attributes
60 ERS_EMPTY // no attributes in this class
61 )
62
63
67 PermissionDenied, // issue class name
68 ers::File, // base class name
69 "You are not allowed to open \""
70 << file_name << "\" file, which has "
71 << mode << " access mode", // message
72 ((const char *)file_name ), // base class attributes
73 ((int)mode ) // attribute of this class
74 )
75
76#endif
77
#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