DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Exceptions.hpp
Go to the documentation of this file.
1#ifndef EXCEPTIONS_H
2#define EXCEPTIONS_H
3
5#include "ers/ers.hpp"
6
7#include "conffwk/Errors.hpp"
8
9#include <string>
10
11namespace daq
12{
13
15
16ERS_DECLARE_ISSUE_BASE ( dbe, ObjectChangeWasNotSuccessful, Exception,
17 "Object was not changed.", , )
18
21 "Only Configuration DB opened by rdbconfig or oksconflibs plug-in can be changed.", , )
22
23ERS_DECLARE_ISSUE_BASE ( dbe, CouldNotCommitChanges, Exception,
24 "Changes could not be committed, no object was changed.", , )
25
27 ( ( const char * ) message ) )
28
29ERS_DECLARE_ISSUE_BASE ( dbe, DatabaseChangeNotSuccessful, Exception,
30 "Database change was not successful, no object was not changed.", , )
31
34 "Internal DBE references cannot point to null ConfigObject references", , )
35
36ERS_DECLARE_ISSUE_BASE ( dbe, cannot_handle_invalid_qmodelindex, Exception,
37 "An invalid qmodel index has been encountered", , )
38
41 "A gref with an empty internal queue has been encountered which should not be possible",
42 , )
43
45 dbe, config_object_retrieval_result_is_null, Exception,
46 "Config layer returned null reference for object: " << oname , ,
47 ( ( std::string ) oname ) )
48
50 "A insertion to the internal map failed", , )
51
52ERS_DECLARE_ISSUE_BASE ( dbe, null_config_reference_access, Exception,
53 "Attempt to access a ConfigObject through a null reference", , )
54
55} /* end namespace daq */
56
57namespace dbe
58{
59namespace config
60{
61namespace errors
62{
63
67std::string const parse ( ers::Issue const & );
71std::string const unwind ( ers::Issue const & );
75std::string const reason ( ers::Issue const & );
79std::string const topcause ( ers::Issue const & );
83std::string const dump ( ers::Issue const & );
84
85}
86}
87} /* end namespace dbe */
88#endif // EXCEPTIONS_H
Base class for any user define issue.
Definition Issue.hpp:69
#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.