DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Exceptions.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from dbe/Exceptions.h to include/dbe/Exceptions.hpp).
5
6#ifndef EXCEPTIONS_H
7#define EXCEPTIONS_H
8
10#include "ers/ers.hpp"
11
12#include "conffwk/Errors.hpp"
13
14#include <string>
15
16namespace daq {
17
19
20ERS_DECLARE_ISSUE_BASE(dbe, ObjectChangeWasNotSuccessful, Exception, "Object was not changed.", , )
21
23 ChangeNotAllowed,
25 "Only Configuration DB opened by rdbconfig or oksconflibs plug-in can be changed.",
26 , )
27
31 "Changes could not be committed, no object was changed.",
32 , )
33
34ERS_DECLARE_ISSUE_BASE(dbe, BadConversion, Exception, message, , ((const char*)message))
35
39 "Database change was not successful, no object was not changed.",
40 , )
41
43 ConfigObjectInvalidReference,
45 "Internal DBE references cannot point to null ConfigObject references",
46 , )
47
51 "An invalid qmodel index has been encountered",
52 , )
53
55 gref_empty_internal_queue_is_invalid_state,
57 "A gref with an empty internal queue has been encountered which should not be possible",
58 , )
59
63 "Config layer returned null reference for object: " << oname,
64 ,
65 ((std::string)oname))
66
68 dbcontroller_internal_cache_failure,
70 "A insertion to the internal map failed",
71 , )
72
76 "Attempt to access a ConfigObject through a null reference",
77 , )
78
79} /* end namespace daq */
80
81namespace dbe {
82namespace config {
83namespace errors {
84
88std::string const
89parse(ers::Issue const&);
93std::string const
94unwind(ers::Issue const&);
98std::string const
99reason(ers::Issue const&);
103std::string const
104topcause(ers::Issue const&);
108std::string const
109dump(ers::Issue const&);
110
111}
112}
113} /* end namespace dbe */
114#endif // EXCEPTIONS_H
Base class for any user define issue.
Definition Issue.hpp:76
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message_, attributes)
Definition macro.hpp:71
Including ers headers.
Changes could not be no object was Database change was not no object was not An invalid qmodel index has been config_object_retrieval_result_is_null
Changes could not be no object was Database change was not no object was not An invalid qmodel index has been Config layer returned null reference for std::string oname null_config_reference_access
Changes could not be no object was DatabaseChangeNotSuccessful
Changes could not be no object was Database change was not no object was not cannot_handle_invalid_qmodelindex
ERS_DECLARE_ISSUE_BASE(dbe, ChangeNotAllowed, Exception, "Only Configuration DB opened by rdbconfig or oksconflibs plug-in can be changed.",,) ERS_DECLARE_ISSUE_BASE(dbe
CouldNotCommitChanges
std::string const parse(ers::Issue const &)
std::string const topcause(ers::Issue const &)
std::string const dump(ers::Issue const &)
std::string const unwind(ers::Issue const &)
std::string const reason(ers::Issue const &)
Include QT Headers.