Skip to content
Snippets Groups Projects
Commit cbcee845 authored by MichelJuillard's avatar MichelJuillard
Browse files

add class for exceptions

parent 9e2abb9d
No related branches found
No related tags found
No related merge requests found
...@@ -142,13 +142,17 @@ public: ...@@ -142,13 +142,17 @@ public:
expr_t MinusOne, MinusInfinity; expr_t MinusOne, MinusInfinity;
//! Raised when a local parameter is declared twice //! Raised when a local parameter is declared twice
struct LocalVariableException class LocalVariableException
{ {
public:
string name; string name;
LocalVariableException(str name_arg) : name(name_arg) {}
}; };
class DivisionByZeroException class DivisionByZeroException
{ {
public:
DivisionByZeroException() {}
}; };
inline expr_t AddPossiblyNegativeConstant(double val); inline expr_t AddPossiblyNegativeConstant(double val);
...@@ -284,6 +288,8 @@ public: ...@@ -284,6 +288,8 @@ public:
//! Thrown when trying to access an unknown variable by deriv_id //! Thrown when trying to access an unknown variable by deriv_id
class UnknownDerivIDException class UnknownDerivIDException
{ {
public:
UnknownDerivIDException() {}
}; };
//! Raised when a trend is declared twice //! Raised when a trend is declared twice
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment