ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CaloCond::IndexOutOfRange Class Reference

Thrown if an index is out of range. More...

#include <Exception.h>

Inheritance diagram for CaloCond::IndexOutOfRange:
Collaboration diagram for CaloCond::IndexOutOfRange:

Public Member Functions

 IndexOutOfRange (const std::string &domain, unsigned int idx, unsigned int maxRange=0)
 
virtual ~IndexOutOfRange () throw ()
 
virtual const char * what () const throw ()
 
virtual const std::string & domain () const
 

Protected Member Functions

virtual void setMessage (const std::string &message)
 

Private Attributes

std::string m_domain
 
std::string m_message
 

Detailed Description

Thrown if an index is out of range.

Definition at line 124 of file Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h.

Constructor & Destructor Documentation

◆ IndexOutOfRange()

CaloCond::IndexOutOfRange::IndexOutOfRange ( const std::string &  domain,
unsigned int  idx,
unsigned int  maxRange = 0 
)
inlineexplicit

Definition at line 126 of file Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h.

129  : Exception( domain, "" )
130  {
131  std::ostringstream msg;
132  msg << "Index out of range: " << idx;
133  if(maxRange>0){
134  msg << " >= " << maxRange;
135  }
136  setMessage(msg.str());
137  }

◆ ~IndexOutOfRange()

virtual CaloCond::IndexOutOfRange::~IndexOutOfRange ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ domain()

virtual const std::string& CaloCond::Exception::domain ( ) const
inlinevirtualinherited

Definition at line 30 of file Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h.

30  {
31  return m_domain;
32  }

◆ setMessage()

virtual void CaloCond::Exception::setMessage ( const std::string &  message)
inlineprotectedvirtualinherited

Definition at line 35 of file Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h.

35  {
36  m_message = m_domain + ": " + message;
37  }

◆ what()

virtual const char* CaloCond::Exception::what ( ) const
throw (
)
inlinevirtualinherited

Definition at line 26 of file Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h.

26  {
27  return m_message.c_str();
28  }

Member Data Documentation

◆ m_domain

std::string CaloCond::Exception::m_domain
privateinherited

◆ m_message

std::string CaloCond::Exception::m_message
privateinherited

The documentation for this class was generated from the following file:
CaloCond::Exception::Exception
Exception(const std::string &domain, const std::string &message)
Definition: Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h:22
CaloCond::Exception::m_message
std::string m_message
Definition: Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h:41
CaloCond::Exception::m_domain
std::string m_domain
Definition: Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h:40
ReweightUtils.message
message
Definition: ReweightUtils.py:15
CaloCond::Exception::domain
virtual const std::string & domain() const
Definition: Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h:30
CaloCond::Exception::setMessage
virtual void setMessage(const std::string &message)
Definition: Calorimeter/CaloCondBlobObjs/CaloCondBlobObjs/Exception.h:35
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7