gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
standalone_error_handlers.cpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
17 
19 #include "gambit/Logs/log_tags.hpp"
20 
21 namespace Gambit
22 {
23 
24  using namespace LogTags;
25 
28  {
29  static error local("A problem has been raised by one of the utility codes.","utils_error", utils);
30  return local;
31  }
32 
35  {
36  static warning local("A problem has been raised by one of the utility codes.","utils_warning", utils);
37  return local;
38  }
39 
42  {
43  static error local("A problem has been raised by the backend system.","backend_error", backends);
44  return local;
45  }
46 
49  {
50  static warning local("A problem has been raised by the backend system.","backend_warning", backends);
51  return local;
52  }
53 
56  {
57  static error local("A problem has occurred in the logging utilities.","logging_error", logs);
58  return local;
59  }
60 
63  {
64  static warning local("A problem has occurred in the logging utilities.","logging_warning", logs);
65  return local;
66  }
67 
70  {
71  static error local("A problem has been encountered in the model subsystem.","model_error", models);
72  return local;
73  }
74 
77  {
78  static warning local("A problem has been encountered in the model subsystem.","model_warning", models);
79  return local;
80  }
81 
84  {
85  static invalid_point_exception local;
86  return local;
87  }
88 
89  namespace Printers
90  {
91 
94  {
95  static error local("A problem has occurred in the printer utilities.","printer_error", printers);
96  return local;
97  }
98 
101  {
102  static warning local("A problem has occurred in the printer utilities.","printer_warning", printers);
103  return local;
104  }
105 
106  }
107 
108  namespace IniParser
109  {
110 
113  {
114  static error local("A problem has been encountered in the iniFile reader subsystem.","inifile_error", inifile);
115  return local;
116  }
117 
120  {
121  static warning local("A problem has been encountered in the iniFile reader subsystem.","inifile_warning", inifile);
122  return local;
123  }
124 
125  }
126 
127 
128 }
129 
EXPORT_SYMBOLS error & printer_error()
Printer errors.
EXPORT_SYMBOLS error & utils_error()
Utility errors.
warning & backend_warning()
Backend warnings.
warning & inifile_warning()
IniFile warnings.
Gambit invalid point exception class.
Definition: exceptions.hpp:226
warning & model_warning()
Model warnings.
GAMBIT warning class.
Definition: exceptions.hpp:165
Headeer for logging classes.
error & backend_error()
Backend errors.
GAMBIT error class.
Definition: exceptions.hpp:136
EXPORT_SYMBOLS warning & utils_warning()
Utility warnings.
warning & logging_warning()
Logging warnings.
EXPORT_SYMBOLS warning & printer_warning()
Printer warnings.
Exception objects required for standalone compilation.
error & logging_error()
Logging errors.
invalid_point_exception & invalid_point()
Invalid point exceptions.
error & inifile_error()
IniFile errors.
error & model_error()
Model errors.
TODO: see if we can use this one:
Definition: Analysis.hpp:33