diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-16 20:40:21 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-16 20:40:21 +0000 |
| commit | 5a843c4c224051237105a6e8de472ae9a216c001 (patch) | |
| tree | 8b1b2695a78e1e503a4be9a4ad7c2e643a96bd14 /src/exceptions.h | |
| parent | 5877be91301e5dd54ca125c0acd7bfb1ecc3dcd6 (diff) | |
Replace use of cassert with exceptions.
Diffstat (limited to 'src/exceptions.h')
| -rw-r--r-- | src/exceptions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index 62be0d5..5995942 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -99,6 +99,12 @@ public: {} }; +class ProgrammingError : public MessageError +{ +public: + ProgrammingError (std::string file, int line); +}; + } #endif |
