Go to the documentation of this file.
24 return iNamed ? iNamed->name() : s_unknown;
44 log <<
MSG::DEBUG <<
" Number of Incidents to process = " << incPack.size() <<
" Context= " <<
ctx <<
endmsg;
46 while ( !incPack.empty() ) {
47 for (
const auto& [inc, listeners] : incPack ) {
48 for (
const auto&
l : listeners ) {
50 log <<
MSG::DEBUG <<
"Calling '" << getListenerName(
l.iListener ) <<
"' for incident [" << inc->type() <<
"]"
56 l.iListener->handle( *inc );
58 error() <<
"Exception with tag=" << exc.
tag()
63 if (
l.rethrow ) {
throw exc; }
65 error() <<
"Standard std::exception is caught"
69 if (
l.rethrow ) {
throw exc; }
71 error() <<
"UNKNOWN Exception is caught handling incident" << inc->type() <<
endmsg;
72 if (
l.rethrow ) {
throw; }
const std::string & name() const override
The identifying name of the algorithm object.
StatusCode initialize() override
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Alias for backward compatibility.
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
SmartIF< IIncidentSvc > m_incSvc
StatusCode execute(const EventContext &ctx) const override
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual const std::string & tag() const
name tag for the exception, or exception type
constexpr static const auto SUCCESS
IncidentProcAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor(s)
#define DECLARE_COMPONENT(type)
StatusCode service(std::string_view name, T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.