ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
AthROOTErrorHandlerSvc Class Reference

#include <AthROOTErrorHandlerSvc.h>

Inheritance diagram for AthROOTErrorHandlerSvc:
Collaboration diagram for AthROOTErrorHandlerSvc:

Public Member Functions

 AthROOTErrorHandlerSvc (const std::string &name, ISvcLocator *svcLoc)
 
virtual ~AthROOTErrorHandlerSvc ()
 
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE () override
 
virtual StatusCode finalize ATLAS_NOT_THREAD_SAFE () override
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Private Attributes

Gaudi::Property< int > m_catchLevel
 
Gaudi::Property< std::map< std::string, int > > m_throwSources
 

Friends

void Handler::ErrorHandler (Int_t level, Bool_t abort, const char *location, const char *message)
 

Detailed Description

Definition at line 42 of file AthROOTErrorHandlerSvc.h.

Constructor & Destructor Documentation

◆ AthROOTErrorHandlerSvc()

AthROOTErrorHandlerSvc::AthROOTErrorHandlerSvc ( const std::string &  name,
ISvcLocator *  svcLoc 
)

Definition at line 36 of file AthROOTErrorHandlerSvc.cxx.

36  :
37  AthService(name, svcLoc) {
38 }

◆ ~AthROOTErrorHandlerSvc()

AthROOTErrorHandlerSvc::~AthROOTErrorHandlerSvc ( )
virtual

Definition at line 40 of file AthROOTErrorHandlerSvc.cxx.

40  {
41 }

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE() [1/2]

virtual StatusCode initialize AthROOTErrorHandlerSvc::ATLAS_NOT_THREAD_SAFE ( )
overridevirtual

◆ ATLAS_NOT_THREAD_SAFE() [2/2]

virtual StatusCode finalize AthROOTErrorHandlerSvc::ATLAS_NOT_THREAD_SAFE ( )
overridevirtual

◆ msg() [1/2]

MsgStream& AthCommonMsg< Service >::msg
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Service >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Service >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

Friends And Related Function Documentation

◆ Handler::ErrorHandler

void Handler::ErrorHandler ( Int_t  level,
Bool_t  abort,
const char *  location,
const char *  message 
)
friend

Member Data Documentation

◆ m_catchLevel

Gaudi::Property<int> AthROOTErrorHandlerSvc::m_catchLevel
private
Initial value:
{
this, "CatchLevel", kFatal+1,
"Throw runtime error for all messages at this level or HIGHER"}

Definition at line 55 of file AthROOTErrorHandlerSvc.h.

◆ m_throwSources

Gaudi::Property<std::map<std::string,int> > AthROOTErrorHandlerSvc::m_throwSources
private
Initial value:
{
this, "ThrowSources", {{"TBranch::GetBasket", kError},
{"TFile::ReadBuffer", kError}},
"Map from source to error level. Any message at level or HIGHER will trigger runtime error"}

Definition at line 59 of file AthROOTErrorHandlerSvc.h.


The documentation for this class was generated from the following files:
AthService::AthService
AthService()
Analysis::kError
@ kError
Definition: CalibrationDataVariables.h:60
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221