7 #ifndef _utl_AugerException_h_
8 #define _utl_AugerException_h_
34 virtual std::string GetExceptionName()
const
35 {
return "Generic Exception in the Auger Offline Software"; }
66 virtual std::string GetExceptionName()
const
67 {
return "Access to non-existent sub-component exception"; }
83 virtual std::string GetExceptionName()
const
84 {
return "IO failure exception"; }
108 virtual std::string GetExceptionName()
const
109 {
return "Invalid Iterator Exception"; }
125 virtual std::string GetExceptionName()
const
126 {
return "Out of Bounds Exception"; }
151 virtual std::string GetExceptionName()
const
152 {
return "Invalid order of initialisation and/or use"; }
174 virtual std::string GetExceptionName()
const
175 {
return "Error during module sequencing"; }
191 virtual std::string GetExceptionName()
const
192 {
return "Atmosphere model could not find data needed to perform "
193 "requested calculation."; }
216 const std::string& column,
217 const std::map<std::string, std::string>& indexMap,
218 const std::string& time) :
224 std::ostringstream msg;
225 msg <<
"Did not find requested data for:\n"
229 for (std::map<std::string, std::string>::const_iterator it =
fIndexMap.begin();
231 msg <<
" '" << it->first <<
"' = '" << it->second <<
"',\n";
233 msg <<
"Detector time = " <<
fTime;
242 virtual std::string GetExceptionName()
const
243 {
return "Could not locate requested data in the database"; }
270 virtual std::string GetExceptionName()
const
271 {
return "XML Parse Exception"; }
289 virtual std::string GetExceptionName()
const
290 {
return "XML Validation Exception"; }
311 virtual std::string GetExceptionName()
const
312 {
return "Required data not present in the Event"; }
334 virtual std::string GetExceptionName()
const
335 {
return "Invalid configuration."; }
354 virtual std::string GetExceptionName()
const
355 {
return "I'm sorry Dave, I'm afraid I can't do that."; }
Base class for all exceptions used in the auger offline code.
Base class for exceptions arising because configuration data are not valid.
DataNotFoundInDBException(const std::string &table, const std::string &column, const std::map< std::string, std::string > &indexMap, const std::string &time)
virtual ~DataNotFoundInDBException()
Base class for exceptions trying to access non-existing components.
Exception to use in case of module sequencing failures.
Exception for errors encountered when parsing XML.
Exception for reporting variable out of valid range.
Base class to report exceptions in IO.
Exception to use if sequence of initialisations violated.
Exception to use in case requested data not found in the database with detailed printout.
std::map< std::string, std::string > fIndexMap
Base class for inconsistency/illogicality exceptions.
Exception for errors encountered when validating XML files.
Base class for exceptions arising because required info not present in the Event. ...
Exception for invalid operation on Iterators.
const std::string & GetMessage() const
Retrieve the message from the exception.
const char * what() const
std::exception will print this on crash