Line data Source code
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 :
6 : /// Including DBE
7 : #include "dbe/MyApplication.hpp"
8 : #include "dbe/Exceptions.hpp"
9 : /// Including TDAq
10 : #include "conffwk/Configuration.hpp"
11 : #include "ers/ers.hpp"
12 : #include "logging/Logging.hpp"
13 :
14 : #include "dbe/messenger.hpp"
15 : #include "dbe/version.hpp"
16 :
17 : char const* const dbe_lib_core_version = dbe_compiled_version;
18 :
19 : bool
20 0 : dbe::MyApplication::notify(QObject* rec, QEvent* ev)
21 : {
22 0 : HERE_AUTO_DEF(notify);
23 :
24 0 : try {
25 0 : return QApplication::notify(rec, ev);
26 0 : } catch (dunedaq::conffwk::Exception const& err) {
27 0 : TLOG() << "MyApplication: dunedaq::conffwk::Exception: " << err;
28 0 : ERROR("Unexpected error occurred", dbe::config::errors::unwind(err), "dunedaq::conffwk::Exception caught at", HERE);
29 0 : return false;
30 0 : } catch (ers::Issue const& err) {
31 0 : TLOG() << "MyApplication: ers::Issue: " << err;
32 0 : ERROR("ers::Issue occurred", dbe::config::errors::unwind(err), "\n\nCaught at:", HERE);
33 0 : return false;
34 0 : } catch (std::exception const& err) {
35 0 : TLOG() << "MyApplication: std::exception: ";
36 0 : ERROR("Error sending event", err.what(), "for object", typeid(*ev).name(), "Receiver", typeid(*rec).name());
37 0 : return false;
38 0 : } catch (char const* str) {
39 0 : TLOG() << "MyApplication: EXCEPTION: " << str << std::endl;
40 0 : ERROR("Unknown exception", str, "\n\nCaught at: ", HERE);
41 0 : return false;
42 0 : } catch (...) {
43 0 : TLOG_DEBUG(0) << "MyApplication: Unknown exception!";
44 0 : ERROR("Unknown exception", "\n\nCaught at: ", HERE);
45 0 : return false;
46 0 : }
47 :
48 : TLOG() << "MyApplication: outside catch...";
49 : return false;
50 : }
|