diff options
author | sapier <Sapier at GMX dot net> | 2014-02-05 01:35:40 +0100 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-02-04 22:14:13 -0500 |
commit | 3f376a092e1c16429fb52f24736e9da98aff4cd5 (patch) | |
tree | 7055808f86884593ef2f63316d61533968112956 /src/exceptions.h | |
parent | 2927a327cabe4feddc0aeea0f4111d888560612f (diff) | |
download | hax-minetest-server-3f376a092e1c16429fb52f24736e9da98aff4cd5.tar.gz hax-minetest-server-3f376a092e1c16429fb52f24736e9da98aff4cd5.zip |
Fix settings to honor numeric conversion errors
Rename try* non exceptioning functions to *NoEx
Diffstat (limited to 'src/exceptions.h')
-rw-r--r-- | src/exceptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index 6fb97f3ed..703d6c1a5 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -85,6 +85,11 @@ public: SettingNotFoundException(std::string s): BaseException(s) {} }; +class NumericException : public BaseException { +public: + NumericException(std::string s): BaseException(s) {} +}; + class InvalidFilenameException : public BaseException { public: InvalidFilenameException(std::string s): BaseException(s) {} |