roadrunner  2.6.0
Fast simulator for SBML models
rrException.h
1 // == PREAMBLE ================================================
2 
3 // * Licensed under the Apache License, Version 2.0; see README
4 
5 // == FILEDOC =================================================
6 
14 #ifndef rrExceptionH
15 #define rrExceptionH
16 #include <exception>
17 #include <string>
18 #include <variant>
19 #include "rrExporter.h"
20 
21 using std::string;
22 using std::exception;
23 
24 namespace rr
25 {
26 
27 #ifdef _MSC_VER
28 #pragma warning(disable: 4275)
29 #endif
30 
35  class RR_DECLSPEC Exception : public std::exception
36  {
37  protected:
38  std::string mMessage; //Exception message
39 
40  public:
41  //std::string& Message;
42  Exception(const std::string& desc);
43  virtual ~Exception() throw();
44  virtual const char* what() const throw();
45  std::string Message() const;
46  std::string getMessage() const;
47  };
48 
49 
53  class RR_DECLSPEC CoreException : public Exception
54  {
55  public:
56  CoreException(const std::string& msg);
57  CoreException(const std::string& msg1, const std::string& msg2);
58  };
59 
63  class RR_DECLSPEC ScannerException : public Exception
64  {
65  public:
66  ScannerException(const std::string& msg);
67  };
68 
72  class RR_DECLSPEC NLEQException : public Exception
73  {
74  public:
75  NLEQException(const std::string& msg);
76  };
77 
81  class RR_DECLSPEC NOMException : public Exception
82  {
83  public:
84  NOMException(const std::string& msg);
85  };
86 
90  class RR_DECLSPEC CVODEException : public Exception
91  {
92  public:
93  CVODEException(const std::string& msg);
94  };
95 
99  class RR_DECLSPEC KinsolException : public Exception
100  {
101  public:
102  explicit KinsolException(const std::string& msg);
103  };
104 
108  class RR_DECLSPEC DidNotConvergeException : public Exception
109  {
110  public:
111  explicit DidNotConvergeException(const std::string& msg);
112  };
113 
117  class RR_DECLSPEC NullPointerException : public Exception
118  {
119  public:
120  explicit NullPointerException(const std::string& msg);
121  };
122 
126  class RR_DECLSPEC NotImplementedException : public Exception
127  {
128  public:
129  NotImplementedException(const std::string& msg);
130  };
131 
135  class RR_DECLSPEC InvalidKeyException : public Exception
136  {
137  public:
138  explicit InvalidKeyException(const std::string& msg);
139  };
140 
141 
147  class RR_DECLSPEC UninitializedValueException : public Exception
148  {
149  public:
150  UninitializedValueException(const std::string& msg);
151  };
152 
158  void UninitializedValue(const std::string& msg);
159 
160 }//namepsace rr
161 #endif
Exception class for scanners.
Definition: rrException.h:91
Generic exception class.
Definition: rrException.h:54
Exception class for scanners.
Definition: rrException.h:109
The RoadRunner exception class.
Definition: rrException.h:36
Exception class for scanners.
Definition: rrException.h:136
Exception class for scanners.
Definition: rrException.h:100
Exception class for scanners.
Definition: rrException.h:73
Exception class for scanners.
Definition: rrException.h:82
Exception class for scanners.
Definition: rrException.h:127
Exception class for scanners.
Definition: rrException.h:118
Exception class for scanners.
Definition: rrException.h:64
Thrown whenever an uninitialized value is encountered, see https://github.com/sys-bio/roadrunner/issu...
Definition: rrException.h:148