summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-02-05 01:35:40 +0100
committerkwolekr <kwolekr@minetest.net>2014-02-04 22:14:13 -0500
commit3f376a092e1c16429fb52f24736e9da98aff4cd5 (patch)
tree7055808f86884593ef2f63316d61533968112956 /src/exceptions.h
parent2927a327cabe4feddc0aeea0f4111d888560612f (diff)
downloadminetest-3f376a092e1c16429fb52f24736e9da98aff4cd5.tar.gz
minetest-3f376a092e1c16429fb52f24736e9da98aff4cd5.tar.bz2
minetest-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.h5
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) {}