summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-04-27 01:24:37 -0400
committerkwolekr <kwolekr@minetest.net>2015-04-27 01:24:37 -0400
commitcd1d625ab21e741e91be7d2190bb4fd59fab3200 (patch)
treecc11bc4b971be5712d3aaaf55d3b4697c4876f30 /src/exceptions.h
parent732eb72a0c4e2fb4632b0f42762d102e0d98dffa (diff)
downloadminetest-cd1d625ab21e741e91be7d2190bb4fd59fab3200.tar.gz
minetest-cd1d625ab21e741e91be7d2190bb4fd59fab3200.tar.bz2
minetest-cd1d625ab21e741e91be7d2190bb4fd59fab3200.zip
Replace PRNG assertions with PrngException
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 0ea4c9350..6bf832828 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -120,6 +120,11 @@ public:
ClientStateError(std::string s): BaseException(s) {}
};
+class PrngException : public BaseException {
+public:
+ PrngException(std::string s): BaseException(s) {}
+};
+
/*
Some "old-style" interrupts:
*/