C API Documentation
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 "rrExporter.h"
19 
20 using std::string;
21 using std::exception;
22 
23 namespace rr
24 {
25 
26 #ifdef _MSC_VER
27 #pragma warning(disable: 4275)
28 #endif
29 
30 class RR_DECLSPEC Exception : public std::exception
31 {
32  protected:
33  string mMessage; //Exception message
34 
35  public:
36  //string& Message;
37  Exception(const string& desc);
38  virtual ~Exception() throw();
39  virtual const char* what() const throw();
40  string Message() const;
41  string getMessage() const;
42 };
43 
44 class RR_DECLSPEC CoreException : public Exception
45 {
46  public:
47  CoreException(const string& msg);
48  CoreException(const string& msg1, const string& msg2);
49 };
50 
51 class RR_DECLSPEC ScannerException : public Exception
52 {
53  public:
54  ScannerException(const string& msg);
55 };
56 
57 class RR_DECLSPEC NLEQException : public Exception
58 {
59  public:
60  NLEQException(const string& msg);
61 };
62 
63 class RR_DECLSPEC NOMException : public Exception
64 {
65  public:
66  NOMException(const string& msg);
67 };
68 
69 class RR_DECLSPEC CVODEException : public Exception
70 {
71  public:
72  CVODEException(const string& msg);
73 };
74 
75 class RR_DECLSPEC NotImplementedException : public Exception
76 {
77  public:
78  NotImplementedException(const string& msg);
79 };
80 
81 class RR_DECLSPEC InvalidKeyException : public Exception
82 {
83  public:
84  InvalidKeyException(const string& msg);
85 };
86 
92 class RR_DECLSPEC UninitializedValueException : public Exception
93 {
94  public:
95  UninitializedValueException(const string& msg);
96 };
97 
103 void UninitializedValue(const string& msg);
104 
105 }//namepsace rr
106 #endif
Definition: rrException.h:70
Definition: rrException.h:45
Definition: rrException.h:31
Definition: rrException.h:82
Definition: rrException.h:58
Definition: rrException.h:64
Definition: rrException.h:76
Definition: rrException.h:52
Thrown whenever an uninitialized value is encountered, see https://github.com/sys-bio/roadrunner/issu...
Definition: rrException.h:93