ATLAS Offline Software
Loading...
Searching...
No Matches
TileCalib::InvalidCaloGain Class Reference

Signals invalid use of gain. More...

#include <Exception.h>

Inheritance diagram for TileCalib::InvalidCaloGain:
Collaboration diagram for TileCalib::InvalidCaloGain:

Public Member Functions

 InvalidCaloGain (const std::string &domain, CaloGain::CaloGain caloGain)
virtual ~InvalidCaloGain () 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

Signals invalid use of gain.

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

Definition at line 39 of file TileCalorimeter/TileConditions/TileConditions/Exception.h.

Constructor & Destructor Documentation

◆ InvalidCaloGain()

TileCalib::InvalidCaloGain::InvalidCaloGain ( const std::string & domain,
CaloGain::CaloGain caloGain )
inlineexplicit

Definition at line 41 of file TileCalorimeter/TileConditions/TileConditions/Exception.h.

43 : Exception( domain, "" )
44 {
45 std::ostringstream msg;
46 msg << "Invalid CaloGain: " << caloGain;
47 setMessage(msg.str());
48 }
Exception(const std::string &domain, const std::string &message)
MsgStream & msg
Definition testRead.cxx:32

◆ ~InvalidCaloGain()

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

Member Function Documentation

◆ domain()

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

◆ format()

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