25 error() <<
"failed to initialize base class" <<
endmsg;
28 return handle(
"initialize" );
51 this,
"Transition",
"",
"In which transition to fail ['initialize', 'start', 'stop', 'finalize']" };
56 if (
m_mode ==
"exception" ) {
58 }
else if (
m_mode ==
"failure" ) {
61 warning() <<
"Unknown type of failure '" <<
m_mode <<
"', use 'failure' or 'exception'" <<
endmsg;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Implementation of property with value of concrete type.
Define general base for Gaudi exception.
Special service that issue a failure in one of the transitions (for testing).
Gaudi::Property< std::string > m_transition
StatusCode initialize() override
StatusCode finalize() override
StatusCode stop() override
StatusCode handle(const std::string &transition)
StatusCode start() override
Service(std::string name, ISvcLocator *svcloc)
Standard Constructor.
Gaudi::Property< std::string > m_mode
StatusCode finalize() override
const std::string & name() const override
Retrieve name of the service.
StatusCode stop() override
StatusCode start() override
StatusCode initialize() override
Service(std::string name, ISvcLocator *svcloc)
Standard Constructor.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE