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

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

#include <Exception.h>

Inheritance diagram for TileCalib::IndexOutOfRange:
Collaboration diagram for TileCalib::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 Member Functions

void format ()
 

Private Attributes

std::string m_domain
 
std::string m_message
 
std::string m_result
 

Detailed Description

Thrown if an index is out of range.

Author
Nils Gollub nils..nosp@m.goll.nosp@m.ub@ce.nosp@m.rn.c.nosp@m.h

Definition at line 141 of file TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h.

Constructor & Destructor Documentation

◆ IndexOutOfRange()

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

Definition at line 143 of file TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h.

146  : Exception( domain, "" )
147  {
148  std::ostringstream msg;
149  msg << "Index out of range: " << idx;
150  if(maxRange>0){
151  msg << " >= " << maxRange;
152  }
153  setMessage(msg.str());
154  }

◆ ~IndexOutOfRange()

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

Member Function Documentation

◆ domain()

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

Definition at line 35 of file TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h.

35  {
36  return m_domain;
37  }

◆ format()

void TileCalib::Exception::format ( )
inlineprivateinherited

◆ setMessage()

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

◆ what()

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

Definition at line 31 of file TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h.

31  {
32  return m_result.c_str();
33  }

Member Data Documentation

◆ m_domain

std::string TileCalib::Exception::m_domain
privateinherited

◆ m_message

std::string TileCalib::Exception::m_message
privateinherited

◆ m_result

std::string TileCalib::Exception::m_result
privateinherited

The documentation for this class was generated from the following file:
TileCalib::Exception::domain
virtual const std::string & domain() const
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:35
TileCalib::Exception::m_result
std::string m_result
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:53
ReweightUtils.message
message
Definition: ReweightUtils.py:15
TileCalib::Exception::Exception
Exception(const std::string &domain, const std::string &message)
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:24
TileCalib::Exception::format
void format()
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:46
TileCalib::Exception::m_domain
std::string m_domain
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:51
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
TileCalib::Exception::setMessage
virtual void setMessage(const std::string &message)
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:40
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
TileCalib::Exception::m_message
std::string m_message
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:52