ATLAS Offline Software
Loading...
Searching...
No Matches
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 }
Exception(const std::string &domain, const std::string &message)
virtual void setMessage(const std::string &message)
MsgStream & msg
Definition testRead.cxx:32

◆ ~IndexOutOfRange()

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

Member Function Documentation

◆ domain()

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

◆ setMessage()

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

◆ 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: