58 m_message =
"Unable to open file '"+filename+
"'. "+message;
70 const std::string& message)
92 m_message =
"No pointing found in CTA observation. "+message;
106 m_message =
"Attempt to use CTA response, but no response function"
107 " has been found. Use GCTAObservation::response() method"
108 " to set response function. "+message;
122 m_message =
"No sky pixels have been found. "+message;
136 m_message =
"No energy boundaries have been found. "+message;
150 m_message =
"No Good Time Intervals (GTIs) have been found. "+message;
167 m_message =
"Energy vector has not been setup."
168 " Cannot access event information.";
169 if (message.length() > 0)
189 m_message =
"Sky direction vector has not been setup."
190 " Cannot access event information.";
191 if (message.length() > 0)
212 m_message =
"Observation is not of type GCTAObservation.";
213 if (message.length() > 0)
233 m_message =
"Event is not of type GCTAEventAtom or GCTAEventBin.";
234 if (message.length() > 0)
254 m_message =
"ROI is not of type GCTARoi.";
255 if (message.length() > 0)
276 m_message =
"Instrument direction is not of type GCTAInstDir.";
277 if (message.length() > 0)
298 m_message =
"Pointing is not of type GCTAPointing.";
299 if (message.length() > 0)
320 m_message =
"Response is not of type GCTAResponse.";
321 if (message.length() > 0)
342 m_message =
"Invalid radial CTA model type \""+type+
"\" encountered. " +
347 if (registry.
size() > 0) {
348 m_message +=
"The following models are registered: ";
349 for (
int i = 0; i < registry.
size(); ++i) {
358 m_message +=
"No models are registered.";
373 const std::string& message)
379 m_message =
"Model is not of expected type.";
382 if (message.length() > 0) {
410 " is smaller than the expected dimension "+
413 if (message.length() > 0) {
435 m_message =
"Response table has invalid format.";
436 if (message.length() > 0) {
virtual const char * what() const
Exception message.
file_open_error(std::string origin, std::string filename, std::string message="")
Error while opening file.
bad_instdir_type(std::string origin, std::string message="")
Instrument direction is not a CTA instrument direction.
no_gti(std::string origin, std::string message="")
No Good Time Intervals found.
no_energies(std::string origin, std::string message="")
No energies set.
CTA radial model registry class definition.
no_ebds(std::string origin, std::string message="")
No energy boundary information found.
no_dirs(std::string origin, std::string message="")
No sky directions set.
std::string name(const int &index) const
Returns model name.
bad_model_type(const std::string &origin, const std::string &message="")
Response is not a CTA response.
char * tochar(const std::string &arg)
Convert string to C string.
bad_response_type(std::string origin, std::string message="")
Response is not a CTA response.
no_member(const std::string &origin, const std::string &message)
Member not set.
bad_observation_type(std::string origin, std::string message="")
Observation is not a CTA observation.
no_sky(std::string origin, std::string message="")
No sky pixels found.
no_response(std::string origin, std::string message="")
Instrument response not set.
model_invalid_radial(std::string origin, std::string type, std::string message="")
Invalid radial model type.
CTA exception handler interface definition.
int size(void) const
Return number of registered models.
bad_rsp_table_dim(std::string origin, int table_dim, int expected_dim, std::string message="")
Bad response table dimension.
Interface definition for the CTA radial model registry class.
bad_roi_type(std::string origin, std::string message="")
ROI is not a CTA ROI.
bad_event_type(std::string origin, std::string message="")
Event is not a CTA event.
no_pointing(std::string origin, std::string message="")
Pointing not set.
bad_pointing_type(std::string origin, std::string message="")
Pointing is not a CTA pointing.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.