DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
MyApplication.cpp
Go to the documentation of this file.
1
3#include "dbe/Exceptions.hpp"
6#include "ers/ers.hpp"
7#include "logging/Logging.hpp"
8
9#include "dbe/messenger.hpp"
10#include "dbe/version.hpp"
11
13
14bool dbe::MyApplication::notify ( QObject * rec, QEvent * ev )
15{
17
18 try
19 {
20 return QApplication::notify ( rec, ev );
21 }
22 catch ( dunedaq::conffwk::Exception const & err )
23 {
24 TLOG() << "MyApplication: dunedaq::conffwk::Exception: " << err ;
25 ERROR ( "Unexpected error occurred", dbe::config::errors::unwind(err), "dunedaq::conffwk::Exception caught at", HERE );
26 return false;
27 }
28 catch ( ers::Issue const & err )
29 {
30 TLOG() << "MyApplication: ers::Issue: " << err ;
31 ERROR ( "ers::Issue occurred", dbe::config::errors::unwind(err), "\n\nCaught at:", HERE );
32 return false;
33 }
34 catch ( std::exception const & err )
35 {
36 TLOG() << "MyApplication: std::exception: " ;
37 ERROR ( "Error sending event", err.what(), "for object", typeid ( *ev ).name(), "Receiver",
38 typeid ( *rec ).name() );
39 return false;
40 }
41 catch ( char const * str )
42 {
43 TLOG() << "MyApplication: EXCEPTION: " << str << std::endl ;
44 ERROR ( "Unknown exception", str, "\n\nCaught at: ", HERE );
45 return false;
46 }
47 catch ( ... )
48 {
49 TLOG_DEBUG(0) << "MyApplication: Unknown exception!" ;
50 ERROR ( "Unknown exception", "\n\nCaught at: ", HERE );
51 return false;
52 }
53
54 TLOG() << "MyApplication: outside catch..." ;
55 return false;
56}
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:69
conffwk entry point
#define HERE_AUTO_DEF(funname)
Definition macro.hpp:36
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112
#define TLOG(...)
Definition macro.hpp:22
#define ERROR(...)
Definition messenger.hpp:88
std::string const unwind(ers::Issue const &)
#define dbe_compiled_version
Definition version.hpp:17