48 m_message =
"No valid instrument response found in observation."
49 " Set event container before using this method.";
50 if (message.length() > 0) {
71 m_message =
"No valid event container found in observation."
72 " Set event container before using this method.";
73 if (message.length() > 0) {
94 m_message =
"No valid event list found in observation."
95 " Set event list before using this method.";
96 if (message.length() > 0) {
117 m_message =
"No valid event cube found in observation."
118 " Set event cube before using this method.";
119 if (message.length() > 0) {
140 m_message =
"No valid region of interest (ROI) found in observation."
141 " Set region of interest before using this method.";
142 if (message.length() > 0) {
167 " mismatches number "+
gammalib::str(npars)+
" of model parameters.";
189 m_message =
"Calibration database \""+caldb+
"\" not found.";
190 if (message.length() > 0) {
214 m_message =
"Invalid response type \""+type+
"\" specified.";
215 if (message.length() > 0) {
233 GTime tstop, std::string message)
239 m_message =
"Invalid Good Time Interval (" + tstart.
print() +
"-" +
240 tstop.
print() +
") specified.";
241 if (message.length() > 0) {
259 double emax, std::string message)
267 if (message.length() > 0) {
284 std::string statistics,
291 m_message =
"Invalid optimization statistics \""+statistics+
293 if (message.length() > 0) {
310 std::string instrument,
315 m_message =
"Invalid instrument \""+instrument+
"\" encountered.";
316 if (message.length() > 0) {
322 if (registry.
size() > 0) {
323 m_message +=
" The following instruments are registered: ";
324 for (
int i = 0; i < registry.
size(); ++i) {
333 m_message +=
"No instruments are registered.";
349 const std::string& unit,
350 const std::string& message)
354 m_message =
"Invalid time unit \""+unit+
"\" encountered.";
355 if (message.length() > 0) {
371 const std::string& message)
375 m_message =
"No valid time reference Modified Julian Day found.";
376 if (message.length() > 0) {
no_events(std::string origin, std::string message="")
No valid event container found.
rsp_invalid_type(std::string origin, std::string type, std::string message="")
Response error: invalid response type specified.
no_response(std::string origin, std::string message="")
No valid instrument response found.
gradient_par_mismatch(std::string origin, int nsize, int npars)
Mismatch between gradient vector and number of model parameters.
int size(void) const
Return number of registered observations.
invalid_statistics(std::string origin, std::string statistics, std::string message="")
Invalid optimization statistics.
invalid_instrument(std::string origin, std::string instrument, std::string message="")
Invalid instrument encountered.
Interface definition for the observation registry class.
time_invalid_unit(const std::string &origin, const std::string &unit, const std::string &message="")
Invalid time unit encountered.
Observation registry class definition.
std::string name(const int &index) const
Returns instrument name for a specific registered observation.
erange_invalid(std::string origin, double emin, double emax, std::string message="")
Invalid energy range found.
std::string print(const GChatter &chatter=NORMAL) const
Print time.
no_list(std::string origin, std::string message="")
No valid event list found.
caldb_not_found(std::string origin, std::string home, std::string message="")
Calibration database directory not found.
no_roi(std::string origin, std::string message="")
No valid region of interest found.
gti_invalid(std::string origin, GTime tstart, GTime tstop, std::string message="")
Invalid Good Time Interval found.
Exception handler interface definition.
no_cube(std::string origin, std::string message="")
No valid event cube found.
no_valid_time_ref(const std::string &origin, const std::string &message="")
No valid reference MJD found.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.