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{
18
20
21ERS_DECLARE_ISSUE_BASE ( dbe, ObjectChangeWasNotSuccessful, Exception,
22 "Object was not changed.", , )
23
26 "Only Configuration DB opened by rdbconfig or oksconflibs plug-in can be changed.", , )
27
28ERS_DECLARE_ISSUE_BASE ( dbe, CouldNotCommitChanges, Exception,
29 "Changes could not be committed, no object was changed.", , )
30
32 ( ( const char * ) message ) )
33
34ERS_DECLARE_ISSUE_BASE ( dbe, DatabaseChangeNotSuccessful, Exception,
35 "Database change was not successful, no object was not changed.", , )
36
39 "Internal DBE references cannot point to null ConfigObject references", , )
40
41ERS_DECLARE_ISSUE_BASE ( dbe, cannot_handle_invalid_qmodelindex, Exception,
42 "An invalid qmodel index has been encountered", , )
43
46 "A gref with an empty internal queue has been encountered which should not be possible",
47 , )
48
50 dbe, config_object_retrieval_result_is_null, Exception,
51 "Config layer returned null reference for object: " << oname , ,
52 ( ( std::string ) oname ) )
53
55 "A insertion to the internal map failed", , )
56
57ERS_DECLARE_ISSUE_BASE ( dbe, null_config_reference_access, Exception,
58 "Attempt to access a ConfigObject through a null reference", , )
59
60} /* end namespace daq */
61
62namespace dbe
63{
64namespace config
65{
66namespace errors
67{
68
72std::string const parse ( ers::Issue const & );
76std::string const unwind ( ers::Issue const & );
80std::string const reason ( ers::Issue const & );
84std::string const topcause ( ers::Issue const & );
88std::string const dump ( ers::Issue const & );
89
90}
91}
92} /* end namespace dbe */
93#endif // EXCEPTIONS_H
Base class for any user define issue.
Definition Issue.hpp:80
#define ERS_DECLARE_ISSUE( namespace_name, class_name, message_, attributes)
Definition macro.hpp:65
Including ers headers.
Only Configuration DB opened by rdbconfig or oksconflibs plug in can be const char *message Internal DBE references cannot point to null ConfigObject A gref with an empty internal queue has been encountered which should not be dbcontroller_internal_cache_failure
Only Configuration DB opened by rdbconfig or oksconflibs plug in can be BadConversion
Only Configuration DB opened by rdbconfig or oksconflibs plug in can be message
ERS_DECLARE_ISSUE_BASE(dbe, ObjectChangeWasNotSuccessful, Exception, "Object was not changed.",,) ERS_DECLARE_ISSUE_BASE(dbe
Only Configuration DB opened by rdbconfig or oksconflibs plug in can be const char *message Internal DBE references cannot point to null ConfigObject gref_empty_internal_queue_is_invalid_state
Only Configuration DB opened by rdbconfig or oksconflibs plug in can be const char *message ConfigObjectInvalidReference
ChangeNotAllowed
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.