DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
MyApplication.cpp
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: no.
5
8#include "dbe/Exceptions.hpp"
11#include "ers/ers.hpp"
12#include "logging/Logging.hpp"
13
14#include "dbe/messenger.hpp"
15#include "dbe/version.hpp"
16
18
19bool
20dbe::MyApplication::notify(QObject* rec, QEvent* ev)
21{
23
24 try {
25 return QApplication::notify(rec, ev);
26 } catch (dunedaq::conffwk::Exception const& err) {
27 TLOG() << "MyApplication: dunedaq::conffwk::Exception: " << err;
28 ERROR("Unexpected error occurred", dbe::config::errors::unwind(err), "dunedaq::conffwk::Exception caught at", HERE);
29 return false;
30 } catch (ers::Issue const& err) {
31 TLOG() << "MyApplication: ers::Issue: " << err;
32 ERROR("ers::Issue occurred", dbe::config::errors::unwind(err), "\n\nCaught at:", HERE);
33 return false;
34 } catch (std::exception const& err) {
35 TLOG() << "MyApplication: std::exception: ";
36 ERROR("Error sending event", err.what(), "for object", typeid(*ev).name(), "Receiver", typeid(*rec).name());
37 return false;
38 } catch (char const* str) {
39 TLOG() << "MyApplication: EXCEPTION: " << str << std::endl;
40 ERROR("Unknown exception", str, "\n\nCaught at: ", HERE);
41 return false;
42 } catch (...) {
43 TLOG_DEBUG(0) << "MyApplication: Unknown exception!";
44 ERROR("Unknown exception", "\n\nCaught at: ", HERE);
45 return false;
46 }
47
48 TLOG() << "MyApplication: outside catch...";
49 return false;
50}
char const *const dbe_lib_core_version
Including DBE.
virtual bool notify(QObject *rec, QEvent *ev)
Base class for any user define issue.
Definition Issue.hpp:76
conffwk entry point
#define HERE_AUTO_DEF(funname)
Definition macro.hpp:41
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:116
#define TLOG(...)
Definition macro.hpp:21
#define ERROR(...)
Definition messenger.hpp:90
std::string const unwind(ers::Issue const &)
#define dbe_compiled_version
Definition version.hpp:22