|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef CALOCONDBLOBOBJS_EXCEPTION_H
6 #define CALOCONDBLOBOBJS_EXCEPTION_H
26 virtual const char*
what()
const throw(){
30 virtual const std::string&
domain()
const{
67 unsigned int version_is,
68 unsigned int version_should=0)
71 std::ostringstream
msg;
72 msg <<
"Blob Version conflict. Is " << version_is;
73 if(version_should){
msg <<
" but should be " << version_should; }
87 unsigned int version_is,
88 unsigned int version_should=0)
91 std::ostringstream
msg;
92 msg <<
"Blob Type conflict. Is " << version_is;
93 if(version_should){
msg <<
" but should be " << version_should; }
107 unsigned int size_is,
108 unsigned int size_should)
111 std::ostringstream
msg;
112 msg <<
"Blob Size conflict. Is " << size_is
113 <<
" but should be " << size_should;
128 unsigned int maxRange=0)
131 std::ostringstream
msg;
132 msg <<
"Index out of range: " <<
idx;
134 msg <<
" >= " << maxRange;
152 std::ostringstream
msg;
153 msg <<
"Invalid CaloGain: " << caloGain;
InvalidCaloGain(const std::string &domain, int caloGain)
Exception(const std::string &domain, const std::string &message)
virtual ~IndexOutOfRange()
VersionConflict(const std::string &domain, unsigned int version_is, unsigned int version_should=0)
Thrown if an invalid CaloGain is encountered.
Thrown if object type in BLOB does not agree with class type.
TypeConflict(const std::string &domain, unsigned int version_is, unsigned int version_should=0)
virtual ~VersionConflict()
virtual ~InvalidCaloGain()
virtual const std::string & domain() const
IndexOutOfRange(const std::string &domain, unsigned int idx, unsigned int maxRange=0)
Thrown if object version in BLOB does not agree with class version.
Thrown if coral::Blob does not conform with expected structure.
Thrown if an index is out of range.
Calocond Exception base class.
virtual const char * what() const
InvalidBlob(const std::string &domain)
virtual void setMessage(const std::string &message)
SizeConflict(const std::string &domain, unsigned int size_is, unsigned int size_should)
Thrown if BLOB size is not correct.