 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TILECALIBBLOBOBJS_EXCEPTION_H
6 #define TILECALIBBLOBOBJS_EXCEPTION_H
31 virtual const char*
what()
const throw(){
35 virtual const std::string&
domain()
const{
81 unsigned int version_is,
82 unsigned int version_should=0)
85 std::ostringstream
msg;
86 msg <<
"Blob Version conflict. Is " << version_is;
87 if(version_should){
msg <<
" but should be " << version_should; }
102 unsigned int version_is,
103 unsigned int version_should=0)
106 std::ostringstream
msg;
107 msg <<
"Blob Type conflict. Is " << version_is;
108 if(version_should){
msg <<
" but should be " << version_should; }
123 unsigned int size_is,
124 unsigned int size_should)
127 std::ostringstream
msg;
128 msg <<
"Blob Size conflict. Is " << size_is
129 <<
" but should be " << size_should;
145 unsigned int maxRange=0)
148 std::ostringstream
msg;
149 msg <<
"Index out of range: " <<
idx;
151 msg <<
" >= " << maxRange;
171 std::ostringstream
msg;
191 std::ostringstream
msg;
192 msg <<
"Invalid bit pattern version: " <<
version;
210 std::ostringstream
msg;
211 msg <<
"Problem not encodable in current bit pattern: " << prb;
230 std::ostringstream
msg;
VersionConflict(const std::string &domain, unsigned int version_is, unsigned int version_should=0)
SizeConflict(const std::string &domain, unsigned int size_is, unsigned int size_should)
Thrown if an index is out of range.
Thrown if coral::Blob does not conform with expected structure.
virtual const std::string & domain() const
virtual ~VersionConflict()
virtual ~InvalidBitPattern()
Thrown if BLOB size is not correct.
virtual ~IndexOutOfRange()
TypeConflict(const std::string &domain, unsigned int version_is, unsigned int version_should=0)
Thrown by TileCalibDrawerOfc if requesting samples for invalid phase.
NoSuchPhase(const std::string &domain, int phase)
Thrown by TileBchBits if unkown problem is detected.
InvalidValue(const std::string &domain, float value)
Thrown if object version in BLOB does not agree with class.
TileCalib Exception base class.
Exception(const std::string &domain, const std::string &message)
virtual const char * what() const
InvalidBitPattern(const std::string &domain, int version)
IndexOutOfRange(const std::string &domain, unsigned int idx, unsigned int maxRange=0)
Thrown by TileBchBits if invalid bit pattern is detected.
InvalidBlob(const std::string &domain)
virtual void setMessage(const std::string &message)
Thrown if object type in BLOB does not agree with class type.
virtual ~InvalidBchProblem()
InvalidBchProblem(const std::string &domain, unsigned int prb)
Thrown to prevent invalid results, eg.