CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::ExceptionToActionTable Class Reference

#include <ExceptionActions.h>

Public Types

typedef std::map< std::string, exception_actions::ActionCodesActionMap
 

Public Member Functions

void add (const std::string &category, exception_actions::ActionCodes code)
 
 ExceptionToActionTable ()
 
 ExceptionToActionTable (const ParameterSet &)
 
exception_actions::ActionCodes find (const std::string &category) const
 
 ~ExceptionToActionTable ()
 

Private Member Functions

void addDefaults ()
 

Private Attributes

ActionMap map_
 

Detailed Description

Definition at line 22 of file ExceptionActions.h.

Member Typedef Documentation

Definition at line 24 of file ExceptionActions.h.

Constructor & Destructor Documentation

edm::ExceptionToActionTable::ExceptionToActionTable ( )
edm::ExceptionToActionTable::ExceptionToActionTable ( const ParameterSet )
explicit
edm::ExceptionToActionTable::~ExceptionToActionTable ( )

Definition at line 86 of file ExceptionActions.cc.

86  {
87  }

Member Function Documentation

void edm::ExceptionToActionTable::add ( const std::string &  category,
exception_actions::ActionCodes  code 
)
void edm::ExceptionToActionTable::addDefaults ( )
private

Definition at line 72 of file ExceptionActions.cc.

References MessageLogger_cfi::cerr, edm::debugit, cuy::ib, and map_.

Referenced by ExceptionToActionTable().

72  {
73  using namespace boost::lambda;
74  // populate defaults that are not 'Rethrow'
75  // (There are none as of CMSSW_3_4_X.)
76  // 'Rethrow' is the default default.
77  if(2 <= debugit()) {
78  ActionMap::const_iterator ib(map_.begin()),ie(map_.end());
79  for(;ib != ie; ++ib) {
80  std::cerr << ib->first << ',' << ib->second << '\n';
81  }
82  std::cerr << std::endl;
83  }
84  }
debugvalue debugit
Definition: DebugMacros.cc:13
ib
Definition: cuy.py:660
exception_actions::ActionCodes edm::ExceptionToActionTable::find ( const std::string &  category) const

Member Data Documentation

ActionMap edm::ExceptionToActionTable::map_
private

Definition at line 35 of file ExceptionActions.h.

Referenced by add(), addDefaults(), ExceptionToActionTable(), and find().