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 0 : bool dbe::MyApplication::notify ( QObject * rec, QEvent * ev )
20 : {
21 0 : HERE_AUTO_DEF ( notify );
22 :
23 0 : try
24 : {
25 0 : return QApplication::notify ( rec, ev );
26 : }
27 0 : catch ( dunedaq::conffwk::Exception const & err )
28 : {
29 0 : TLOG() << "MyApplication: dunedaq::conffwk::Exception: " << err ;
30 0 : ERROR ( "Unexpected error occurred", dbe::config::errors::unwind(err), "dunedaq::conffwk::Exception caught at", HERE );
31 0 : return false;
32 0 : }
33 0 : catch ( ers::Issue const & err )
34 : {
35 0 : TLOG() << "MyApplication: ers::Issue: " << err ;
36 0 : ERROR ( "ers::Issue occurred", dbe::config::errors::unwind(err), "\n\nCaught at:", HERE );
37 0 : return false;
38 0 : }
39 0 : catch ( std::exception const & err )
40 : {
41 0 : TLOG() << "MyApplication: std::exception: " ;
42 0 : ERROR ( "Error sending event", err.what(), "for object", typeid ( *ev ).name(), "Receiver",
43 0 : typeid ( *rec ).name() );
44 0 : return false;
45 0 : }
46 0 : catch ( char const * str )
47 : {
48 0 : TLOG() << "MyApplication: EXCEPTION: " << str << std::endl ;
49 0 : ERROR ( "Unknown exception", str, "\n\nCaught at: ", HERE );
50 0 : return false;
51 0 : }
52 0 : catch ( ... )
53 : {
54 0 : TLOG_DEBUG(0) << "MyApplication: Unknown exception!" ;
55 0 : ERROR ( "Unknown exception", "\n\nCaught at: ", HERE );
56 0 : return false;
57 0 : }
58 :
59 : TLOG() << "MyApplication: outside catch..." ;
60 : return false;
61 : }
|