| 19 | #include "Error.h" |
| 20 | |
| 21 | class InputParserError : public Error |
| 22 | { |
| 23 | public: |
| 24 | enum Code { |
| 25 | VARIABLE_INDEX_OUT_OF_RANGE = 0, |
| 26 | UNEXPECTED_INPUT = 1, |
| 27 | FILE_DOESNT_EXIST = 2, |
| 28 | UNSUPPORTED_BOUND_TYPE = 3, |
| 29 | NETWORK_LEVEL_REASONING_DISABLED = 4, |
| 30 | HIDDEN_VARIABLE_DOESNT_EXIST_IN_NLR = 5, |
| 31 | }; |
| 32 | |
| 33 | InputParserError( InputParserError::Code code ) |
| 34 | : Error( "InputParserError", (int)code ) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | InputParserError( InputParserError::Code code, const char *userMessage ) |
| 39 | : Error( "InputParserError", (int)code, userMessage ) |
| 40 | { |
| 41 | } |
| 42 | }; |
| 43 | |
| 44 | #endif // __InputParserError_h__ |
| 45 |
no outgoing calls
no test coverage detected